SOLVED

Index and match

Copper Contributor

Hi,

i am trying to write an index formula for the following two tables. I want to write an array formula that returns

1326395265

 by matching 311.585 number from the following two table sets

501311.5350 
81020304050
531224364860
      
1501311.5850 
121326395265
10081938577695

 

Basically my problem is that i can't tell the formula to look up 311.585 and return the table number as 2 when typing the area_num for the array function. Also when i type the formula it starts returning values as

121326395265

 instead of

1326395265

 

Please help

 

Thanks

7 Replies

@jiwanjot 

Could you please clarify why returned numbers shall start from12, not 13 and how it is connected to the position  of 311.535 or 311.585 (they are different in your sample). As variant that could be

image.png

but that's another logic.

@Sergei Baklan 

hi i want a formula that looks up these two tables based on my lookup value of 311.535 or 311.585 and returns an array that starts from second column and second row

@jiwanjot 

and lookup value could be in any position or always in the 4th column from the range start? Other words, how do we know where is the first column of the range.

Second row as I understood is the next to the one in which the value found.

 

Another question is what is the logic of how to find end of the range - is it of predefined size or it shall be found based on some logic.

@Sergei Baklan 

The lookup value will always be in 4th column

second answer is that it there is a predefined size to the array

Please see attached

best response confirmed by cuong (Microsoft)
Solution

@jiwanjot 

Better to have sample file instead of screenshot, but for such model

image.png

formula could be

=OFFSET(INDEX(F:F,MATCH($K5,F:F,0)),COUNTIF($K$5:$K5,$K5),-2,1,6)

@Sergei Baklan 

This works exactly how i wanted. Thank you so much.

@jiwanjot , you are welcome

1 best response

Accepted Solutions
best response confirmed by cuong (Microsoft)
Solution

@jiwanjot 

Better to have sample file instead of screenshot, but for such model

image.png

formula could be

=OFFSET(INDEX(F:F,MATCH($K5,F:F,0)),COUNTIF($K$5:$K5,$K5),-2,1,6)

View solution in original post