Help with Vlookup and If Statements

  • Thread starter Thread starter SunnyM
  • Start date Start date
S

SunnyM

Hey everyone,

I'm stuck with this formula:

=IF(C7="Ireland",VLOOKUP(A7,Data_Ireland,2,FALSE),IF(C7="Regions",VLOOKUP(A7,Data_Regions,2,FALSE),IF(C7="Corporate",VLOOKUP(A7,Data_Corporate,2,FALSE),"")

I've spent 4 hours on it trying to get it to work but it keep telling
me i'm missing a parenthesis. So after 4 hours of being in the same
situation as i started i've decided to ask the experts, Any ideas
anyone?

Thanks for all your help with this it's very much appreciated,

Sunny
 
Tricking to tell without seeing the data but try adding another ) to the end
of the formula.
 
It really is as simple as that. However, to get your full money's worth, I
created an alternative formula for you (the original poster (oh, that's where
they get OP from!)

=VLOOKUP(A7, CHOOSE(MATCH(C7,
{"Ireland","Regions","Corporate"},0),Data_Ireland,Data_regions,Data_corporate),2,FALSE)
 
thanks Lads much appreciated, have read up on the choose function and
didn't realise the function existed,

thanks again you guys much appreciated
 
I've seen it used here (in this newsgroup,) so decided to see if I could get
it to work, and I could.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VLOOKUP and IF Statements 2
Using IF statement in a VLOOKUP 2
IF ISNA Help 4
Excel Vlookup Help 0
VLOOKUP & IF used with > or < 7
Excel IF statement with vlookup 2
1 VLOOKUP question 3
Combining IF Statement and Vlookup 0

Back
Top