Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi guys, I am looking for a solution that will combine the IF, AND and
VLOOKUP functions to the following problem. In cell A2 I have the word NORTH and in cell B2 I have the year 2005 ,,,, in cell C2 I want to have a VLOOKUP that will work depending on the info in cells A2 and B2 ,,,, e.g. =IF(AND(A2="NORTH",B2="2005",vlookup(A3,range,2,0) ) .........or something similar , I can't get the formula to work properly ,,,,, any help ? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(AND(A2="North",B2=2005),VLOOKUP(A3,G3:H6,2,FAL SE))
worked for me.You dont say what the result is when you try.Make sure your cell conditions are are actually what you are testing for.Note i dont actually need quotes around 2005. - paul remove nospam for email addy! "John Moore" wrote: Hi guys, I am looking for a solution that will combine the IF, AND and VLOOKUP functions to the following problem. In cell A2 I have the word NORTH and in cell B2 I have the year 2005 ,,,, in cell C2 I want to have a VLOOKUP that will work depending on the info in cells A2 and B2 ,,,, e.g. =IF(AND(A2="NORTH",B2="2005",vlookup(A3,range,2,0) ) .........or something similar , I can't get the formula to work properly ,,,,, any help ? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Paul ,,, works fine ,,, thanks for the quick response ,,,
"paul" wrote: =IF(AND(A2="North",B2=2005),VLOOKUP(A3,G3:H6,2,FAL SE)) worked for me.You dont say what the result is when you try.Make sure your cell conditions are are actually what you are testing for.Note i dont actually need quotes around 2005. - paul remove nospam for email addy! "John Moore" wrote: Hi guys, I am looking for a solution that will combine the IF, AND and VLOOKUP functions to the following problem. In cell A2 I have the word NORTH and in cell B2 I have the year 2005 ,,,, in cell C2 I want to have a VLOOKUP that will work depending on the info in cells A2 and B2 ,,,, e.g. =IF(AND(A2="NORTH",B2="2005",vlookup(A3,range,2,0) ) .........or something similar , I can't get the formula to work properly ,,,,, any help ? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi again ,,,, Could this be extended to cover multiple scenarios ,,,,, e.g.
if A2 was South and B2 was 2006 ,,,,and could it also incorporate the IFISERROR function to return 0 in the event of an error ? "John Moore" wrote: Hi Paul ,,, works fine ,,, thanks for the quick response ,,, "paul" wrote: =IF(AND(A2="North",B2=2005),VLOOKUP(A3,G3:H6,2,FAL SE)) worked for me.You dont say what the result is when you try.Make sure your cell conditions are are actually what you are testing for.Note i dont actually need quotes around 2005. - paul remove nospam for email addy! "John Moore" wrote: Hi guys, I am looking for a solution that will combine the IF, AND and VLOOKUP functions to the following problem. In cell A2 I have the word NORTH and in cell B2 I have the year 2005 ,,,, in cell C2 I want to have a VLOOKUP that will work depending on the info in cells A2 and B2 ,,,, e.g. =IF(AND(A2="NORTH",B2="2005",vlookup(A3,range,2,0) ) .........or something similar , I can't get the formula to work properly ,,,,, any help ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup a Vlookup | Excel Worksheet Functions | |||
VLOOKUP Problem | Excel Discussion (Misc queries) | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
VLOOKUP Limitations | Excel Worksheet Functions | |||
vlookup data hidden within worksheet | Excel Worksheet Functions |