Is it possible to use index match with named ranges? I keep getting #value! or #N/A.
My named ranges are: Data_Table, Year_Range, Column_Range.![]()
Please Login or Register to view this content.
Is it possible to use index match with named ranges? I keep getting #value! or #N/A.
My named ranges are: Data_Table, Year_Range, Column_Range.![]()
Please Login or Register to view this content.
Yes, but the ranges must be of the same dimensions and the data in them must match your lookup values exactly.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Will you please attach a sample Excel workbook? Please don't attach a picture of one.
1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential information is removed first!!
4. Try to avoid using merged cells. They cause lots of problems!
Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
What do you mean of the same dimensions?
The look up cell is titled the same as one of the cells in the look up range.
OK - so the INDEX array will match the ROW array in the number of cells it is deep, and the COLUMN array with the number of cells it is wide.
The lookup cells may look the same, but are they? Is one test and the other a number? Does one have leading or trailing spaces?
Upload the workbook as Glenn suggested and we'll take a look.
If the first MATCH function is looking at 10 rows... and the second match function is looking at 3 columns, then the INDEX part must be looking at 10 rows by 3 columns = 30 cells.
I've uploaded my example spread. I hope this helps to clarify things!
You can't call named ranges like that. use this instead:
=INDEX(INDIRECT(CONCATENATE(C16 & "_" & "Data")),MATCH(B20,INDIRECT(CONCATENATE(C16&"_"&"year")),0),MATCH(C17,INDIRECT(CONCATENATE(C16&"_"&B17)),0))
... and you don't need CONCATENATE. Just use:
=INDEX(INDIRECT(C16 & "_" & "Data"),MATCH(B20,INDIRECT(C16&"_"&"year"),0),MATCH(C17,INDIRECT(C16&"_"&B17),0))
Ohhhhh. So the problem was using concatenate instead of indirect...
Thanks for the help! It works now!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks