VLookup Formula

  • Thread starter AccessUser777 via OfficeKB.com
  • Start date
A

AccessUser777 via OfficeKB.com

Hi all,
Need some help on a formula. I have a spreadsheet that has the following
formula:
=IF(VLOOKUP(D4,MYSAT,10,fasle)="1","D")

What I want the formula to do is if the Vlookup result = 1, then I what to
show a "D".

Is what I'm asking possible? Any help is appreciated. Thanks.
 
D

Don Guillett

First, you may want to check your spelling and then perhaps remove the " "
around the 1
 
S

Sean Timmons

the formula below looks fine except you don't want quotas are the 1 and
misspelled false... not sure if that typo was only in here or also in the
worksheet. quicker and easier if you just type the number 0 instead either
way.
 
L

L. Howard Kittle

Try this, false was spelled wrong and take the 1 out of " "s.

=IF(VLOOKUP(D4,MYSAT,10,false)=1,"D")

HTH
Regards,
Howard
 
A

AccessUser777 via OfficeKB.com

Thanks Don for your reply. I have removed the "" around the 1. I got it to
work with this formula:
=IF(VLOOKUP(D4,MYSAT,10,FALSE)=1,"DM",VLOOKUP(D4,MYSAT,10,"FASLE"))

but, now here is the tricky part: is it possible to use multiple "if"
statements...for example:

=IF(VLOOKUP(D4,MYSAT,15,FALSE)=1,"DM",IF(VLOOKUP(D4,MYSAT,15,fasle)=2,"I",IF
(VLOOKUP(D4,MYSAT,15,fasle)=3,"M",IF(VLOOKUP(D4,MYSAT,15,FALE)=4,"E",IF
(VLOOKUP(D15,MYSAT,15,FALSE)=5,"O",VLOOKUP(D4,MYSAT,15,"FALSE"))))))

I get a #NAME? result.

What I want to do is show a different letter depending on the VLOOKUP value.
Any help or suggestions are appreciated. Thanks.

Don said:
First, you may want to check your spelling and then perhaps remove the " "
around the 1
Hi all,
Need some help on a formula. I have a spreadsheet that has the following
[quoted text clipped - 5 lines]
Is what I'm asking possible? Any help is appreciated. Thanks.
 
D

Don Guillett

Modify this to suit. Look at the help index for CHOOSE
=CHOOSE(VLOOKUP(D4,A1:B12,1,0),"a","b","c","d")

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
[email protected]
AccessUser777 via OfficeKB.com said:
Thanks Don for your reply. I have removed the "" around the 1. I got it
to
work with this formula:
=IF(VLOOKUP(D4,MYSAT,10,FALSE)=1,"DM",VLOOKUP(D4,MYSAT,10,"FASLE"))

but, now here is the tricky part: is it possible to use multiple "if"
statements...for example:

=IF(VLOOKUP(D4,MYSAT,15,FALSE)=1,"DM",IF(VLOOKUP(D4,MYSAT,15,fasle)=2,"I",IF
(VLOOKUP(D4,MYSAT,15,fasle)=3,"M",IF(VLOOKUP(D4,MYSAT,15,FALE)=4,"E",IF
(VLOOKUP(D15,MYSAT,15,FALSE)=5,"O",VLOOKUP(D4,MYSAT,15,"FALSE"))))))

I get a #NAME? result.

What I want to do is show a different letter depending on the VLOOKUP
value.
Any help or suggestions are appreciated. Thanks.

Don said:
First, you may want to check your spelling and then perhaps remove the " "
around the 1
Hi all,
Need some help on a formula. I have a spreadsheet that has the
following
[quoted text clipped - 5 lines]
Is what I'm asking possible? Any help is appreciated. Thanks.
 
D

Don Guillett

Did you see how many times you spelled FALSE wrong. Use 0 instead

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
[email protected]
Don Guillett said:
Modify this to suit. Look at the help index for CHOOSE
=CHOOSE(VLOOKUP(D4,A1:B12,1,0),"a","b","c","d")

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
[email protected]
AccessUser777 via OfficeKB.com said:
Thanks Don for your reply. I have removed the "" around the 1. I got it
to
work with this formula:
=IF(VLOOKUP(D4,MYSAT,10,FALSE)=1,"DM",VLOOKUP(D4,MYSAT,10,"FASLE"))

but, now here is the tricky part: is it possible to use multiple "if"
statements...for example:

=IF(VLOOKUP(D4,MYSAT,15,FALSE)=1,"DM",IF(VLOOKUP(D4,MYSAT,15,fasle)=2,"I",IF
(VLOOKUP(D4,MYSAT,15,fasle)=3,"M",IF(VLOOKUP(D4,MYSAT,15,FALE)=4,"E",IF
(VLOOKUP(D15,MYSAT,15,FALSE)=5,"O",VLOOKUP(D4,MYSAT,15,"FALSE"))))))

I get a #NAME? result.

What I want to do is show a different letter depending on the VLOOKUP
value.
Any help or suggestions are appreciated. Thanks.

Don said:
First, you may want to check your spelling and then perhaps remove the "
"
around the 1

Hi all,
Need some help on a formula. I have a spreadsheet that has the
following
[quoted text clipped - 5 lines]

Is what I'm asking possible? Any help is appreciated. Thanks.
 
Top