cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Acquire index number

fahmed-2
13-Aquamarine

Acquire index number

Hello,

 

I want to assign a number in "d" from "b" in the following way. Firstly, I will input any number in "c". Secondly, I want to acquire the index number from "a" such that the value of "a" matches with the value of "c". Thirdly, Then with that, I will assign a value from "b" to "d". I can do the first and third part but cannot do the second part. It will really be helpful if you please help me out.

 

Faisal

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:fahmed-2)

Something like this?

B.PNG

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:fahmed-2)

Something like this?

B.PNG

fahmed-2
13-Aquamarine
(To:Werner_E)

why did you give an index "0" around the brackets ("c,a"). 

Werner_E
25-Diamond I
(To:fahmed-2)


@fahmed-2 wrote:

why did you give an index "0" around the brackets ("c,a"). 


Because "Match" and also "Lookup" return a vector of values as there could be multiple values found. The vector index 0 (or you could use ORIGIN) just takes the first one.

In your example there is only one value found but the result still would be a vector, a 1x1 vector/array.

fahmed-2
13-Aquamarine
(To:Werner_E)

Thank you very much

Announcements

Top Tags