Solved

understanding index formulae

Posted on 2011-09-17
1
219 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now