try this in cell B2 in ScreenCats =INDIRECT("MenuData!A"&MATCH(A2,MenuData!B:B,0))
With all the articles online, you would think I'd be able to make it work. I am the queen of vlookup and the slave to index/match.
Here is the problem:
In a worksheet called ScreenCats, I want to look up the value in A2 ("Lunch Specials") and find it in column B on a worksheet called MenuData, then return the value one cell to the left of it
I only need to find it once. I cannot workout the appropriate index/match configuration to save my worthless life.
I have attached a sample. If someone could put the formula in there for me or give me a literal formula here (meaning one I can copy/paste), I would be eternally grateful. I'm sick of making extra columns to the right. Can you believe I'm developing an APP here in VBA and can't get this stupid formula?
excelgurusample.xlsx
I am fine with named ranges!
Last edited by Anne Troy; 2012-01-31 at 07:59 PM.
try this in cell B2 in ScreenCats =INDIRECT("MenuData!A"&MATCH(A2,MenuData!B:B,0))
You know, I don't know WHY that works. It looks VERY generic. I don't know WHY I couldn't make it work before. Thanks SOOOO much.
Ken: Thanks for giving us this forum.
ROFL!
Ivalnegri, thanks for joining and looking after Anne here.![]()
Ken Puls, FCPA, FCMA, MS MVP
Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!
Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter
If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.
Anne, you know that INDIRECT is the last refuge of Excel scoundrels.
What is wrong with a simple INDEX/MATCH?
=INDEX(MenuData!A:A,MATCH(ScreenCats!A2,MenuData!B:B,0))
Okay, Bob. I defer to your formulaic knowledge. I have another one for you. I will post a new thread. I appreciate fast help. LOL
Bookmarks