Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to lookup 2 separate ranges based on the IF statement.
For example If B3="PWR-PHYS" then I need it to lookup(A3,'DatePivot'!A1:B20,2) But if B3 does not = "PWR-PHYS", then i need it to lookup(A3,'Location'!A1:B20,2) So whether it equals pwr-phys or doesnt, I need a value returned from separate locations. Please advise how I can do this |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sarah wrote:
I am trying to lookup 2 separate ranges based on the IF statement. For example If B3="PWR-PHYS" then I need it to lookup(A3,'DatePivot'!A1:B20,2) But if B3 does not = "PWR-PHYS", then i need it to lookup(A3,'Location'!A1:B20,2) So whether it equals pwr-phys or doesnt, I need a value returned from separate locations. Please advise how I can do this =VLOOKUP(A3,IF(B3="PWR-PHYS",'DatePivot'!A1:B20,'Location'!A1:B20),2) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this and click yes if this works.
=IF(B3="PWR-PHYS",Vlookup(A3,'DatePivot'!A1:B20,2),vlookup(A3, 'Location'!A1:B20,2)) "Glenn" wrote: Sarah wrote: I am trying to lookup 2 separate ranges based on the IF statement. For example If B3="PWR-PHYS" then I need it to lookup(A3,'DatePivot'!A1:B20,2) But if B3 does not = "PWR-PHYS", then i need it to lookup(A3,'Location'!A1:B20,2) So whether it equals pwr-phys or doesnt, I need a value returned from separate locations. Please advise how I can do this =VLOOKUP(A3,IF(B3="PWR-PHYS",'DatePivot'!A1:B20,'Location'!A1:B20),2) . |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=if(B3="PWR-PHYS",lookup(A3,'DatePivot'!A1:B20,2),lookup(A3,'L ocation'!A1:B20,2))
-- Hope this helps. If it does, please click the Yes button. Thanks in advance for your feedback. Gary Brown "Sarah" wrote: I am trying to lookup 2 separate ranges based on the IF statement. For example If B3="PWR-PHYS" then I need it to lookup(A3,'DatePivot'!A1:B20,2) But if B3 does not = "PWR-PHYS", then i need it to lookup(A3,'Location'!A1:B20,2) So whether it equals pwr-phys or doesnt, I need a value returned from separate locations. Please advise how I can do this |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup, if statement, maybe an and statement | Excel Discussion (Misc queries) | |||
Help with If and Vlookup Statement | Excel Worksheet Functions | |||
Vlookup or IF statement | Excel Worksheet Functions | |||
if then statement (i think) or vlookup | Excel Worksheet Functions | |||
Vlookup or If statement Help | Excel Worksheet Functions |