Solved

understanding index formulae

Posted on 2011-09-17
1
222 Views
Last Modified: 2012-08-13
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
Comment
Question by:Excellearner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 36554434
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filter an Excel list by multiple criteria 6 40
any combination of this numbers 9 33
Look for an number in a column 42 24
Overwriting Named Ranges 13 34
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question