Solved

understanding index formulae

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

705 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

18 Experts available now in Live!

Get 1:1 Help Now