Index, Match and Indirect?

vietb

New Member
Joined
May 29, 2006
Messages
38
Is it possible to place a INDIRECT within a INDEX & MATCH formula? (All the formulas are refering to cells within the same sheet).

The main thing that I want to do is to get the monthly values for a number of countries. So that when I change the the date in the cell that the INDIRECT function refers too, the INDEX & MATCH formulas will get the data for those countires. This might not be the most efficent way or doing this but I cant think of any others. Any tip?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Yes, you can use th eindirect formula in a Match() and Index() formula. What I typically do in situations like this is to build a Data Validation List where each entry is ALSO a Named Range for each table, to be the argumnet for the Indirect() function.

Example:
Book1
BCDEF
2Vehicle
3amcNameVehicleColor
4tomfordred
5****pontiacorange
64harrysubaruyellow
7janeamcgreen
8pollyvolvoblue
9kelleychevyindigo
10scottfordviolet
Sheet1


Where D4:D10 is named Names, E4:E10 is named Vehicles and F4:F10 is named Colors... which are also the choices available in B2. So when the user makes a selection in B2, that is the talbe where where the lookup occurs. The same method can be used for both Idex(), Vlookup() and Hlookup(). It is also a good idea to use Conditional Formatting to indicate when the lookups and tables don't match each other, because it is always possible for the user to get things crossed and end up with bogus results.

Alternately, if the tables are small or are adjacent to each other, the Offset() function can be used in liue of the indirect function.
 
Upvote 0
cheers for the tips so far. I will test it out and get back to you with the results. SOrry about not including a sample of the layout, but I'm using the computers at work and its evry restrictive on what I can install and do.
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,608
Members
452,785
Latest member
3110vba

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top