Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Single Index and match formulae for multiple ranges

Posted on 2011-02-13
3
Medium Priority
?
253 Views
Last Modified: 2012-05-11
Dear experts,

I want a excel formulae in cell c3 in this sheet, which will match the currency in cell b2 in this sheet with the currencies mentioned in column range A in sheet data elements
Then the perform the index and match function as is in cell c3
For instance the current value showsvalue if the currency is USD(cell I9 in sheet data elements), if the currency is GBP it will be 2.56 as in cell I19 in sheet data elements
if the currency is EUR it will be 3.2 as in cell I29 in sheet data elements

Thankyou,

index-and-match-formulae.xls
0
Comment
Question by:Excellearner
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 total points
ID: 34882311
Hello Excellearner,

Given that the row labels and column headers are identical in each table you could just use an OFFSET function in place of the INDEX range, i.e.

=IF(COUNT(MATCH(C4,'data elements'!B3:K3,0)*MATCH(E3,'data elements'!A4:A9,0)),INDEX(OFFSET('data elements'!B4:K9,MATCH(B2,'data elements'!A2:A22,0)-1,0),MATCH(E3,'data elements'!A4:A9,0),MATCH(C4,'data elements'!B3:K3,0)),0)

If you want the headers to be different for any table then it would get more complicated.....

regards, barry
0
 

Author Closing Comment

by:Excellearner
ID: 34882323
Barry, excellent as usual.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34882331
I was looking at a slightly different approach, too.

This version should give the same results but would also allow you to vary the header values (although it assumes that the all the tables will still be the same size)

=LOOKUP(9.9E+307,IF({1,0},0,VLOOKUP(E3,OFFSET('data elements'!A4:K9,MATCH(B2,'data elements'!A2:A22,0)-1,0),MATCH(C4,OFFSET('data elements'!B3:K3,MATCH(B2,'data elements'!A2:A22,0)-1,0),0)+1,0)))

regards, barry
0

Featured Post

Industry Leaders: 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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

824 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