N
Namit
Hi,
I have a data set as follows:
ABC Run 3
ABC Walk 2
ABC Sleep 5
XYZ Run 3
XYZ Walk 1
LMN Jog 10
LMN Sing 12
I am creating a formula wherein when the user selects an input from a
list with options from Col 1 and 2, the formula displays the
corresponding value of Col 3. Hence, when I choose ABC and Walk I get
2. I have tried to using index-match but am not able to display the
data properly. Also, I tried using the offset function. The way I did
it was by having to sort the col 1 first and then change the reference
everytime there is a new entry. But the problem with this logic is
that everytime I have a new entry like OPQ for eg. I'll have to add
another IF statement to identify it.
Also, I tried using row with hlookup which does not work in
identifying the row no.
=+ROW(HLOOKUP(A11,$A$1:$C$10,MATCH(B1,$B$1:$B$10,0),FALSE))
A11 and B11 has the input for col 1 and 2 resp.
Thanks,
Namit.
I have a data set as follows:
ABC Run 3
ABC Walk 2
ABC Sleep 5
XYZ Run 3
XYZ Walk 1
LMN Jog 10
LMN Sing 12
I am creating a formula wherein when the user selects an input from a
list with options from Col 1 and 2, the formula displays the
corresponding value of Col 3. Hence, when I choose ABC and Walk I get
2. I have tried to using index-match but am not able to display the
data properly. Also, I tried using the offset function. The way I did
it was by having to sort the col 1 first and then change the reference
everytime there is a new entry. But the problem with this logic is
that everytime I have a new entry like OPQ for eg. I'll have to add
another IF statement to identify it.
Also, I tried using row with hlookup which does not work in
identifying the row no.
=+ROW(HLOOKUP(A11,$A$1:$C$10,MATCH(B1,$B$1:$B$10,0),FALSE))
A11 and B11 has the input for col 1 and 2 resp.
Thanks,
Namit.