• Status: Solved
• Priority: Medium
• Security: Public
• Views: 229

# understanding index formulae

Dear experts,

Could someone help me understand the below formulae:

I have understood the sections of '=INDEX(D2:BU2' and 'MATCH(1,D8:BU8,0))'.

=INDEX(D2:BU2,1,MATCH(1,D8:BU8,0))

what i am strugling is the reason for inclusion of '1' before ',match'.

Kindly help.
0
Excellearner
1 Solution

Commented:
Hello Excellearner

The syntax of INDEX is

=INDEX(array,row_num,col_num)

so the 1 indicates that the value should be returned from row 1 of the array. In this case the array has only one row so that 1 is superfluous and can be omitted - [excel help says - If array contains only one row or column, the corresponding row_num or column_num argument is optional] this will give the same result

=INDEX(D2:BU2,MATCH(1,D8:BU8,0))

MATCH finds the first 1 in D8:BU8 and returns the position then, as that result is used as col_num in INDEX the effect is to return the row 2 entry from the same column, e.g. if 1 is found first in F8 then MATCH returns 3 and then this

=INDEX(D2:BU2,3)

returns the value from F2

It's a little like HLOOKUP but unlike HLOOKUP you can do a lookup in one row (row 8) and return a value from a higher row (row 2)

regards, barry
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.