Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
I need help with creating a vlookup nested function using the following logic: IF A2=R1 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE) OR IF A2=R2 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE) Any help would be much appreciated! Thanks, Jaret |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could try this approach:
=IF(A2=R1,VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE),IF(A2=R2,VLOOKUP (B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE),"neither")) Will return "neither" if A2 is not equal to R1 or R2. No further error checking, so you will get #N/A if the item in B3 is not found in the table. Hope this helps. Pete "mcmilja" wrote in message ... Hello, I need help with creating a vlookup nested function using the following logic: IF A2=R1 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE) OR IF A2=R2 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE) Any help would be much appreciated! Thanks, Jaret |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This worked like a champ! Thank you very much!
Jaret "Pete_UK" wrote: You could try this approach: =IF(A2=R1,VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE),IF(A2=R2,VLOOKUP (B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE),"neither")) Will return "neither" if A2 is not equal to R1 or R2. No further error checking, so you will get #N/A if the item in B3 is not found in the table. Hope this helps. Pete "mcmilja" wrote in message ... Hello, I need help with creating a vlookup nested function using the following logic: IF A2=R1 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE) OR IF A2=R2 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE) Any help would be much appreciated! Thanks, Jaret |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
modify this to suit
=VLOOKUP(C2,INDIRECT("sheet" & IF(C3=B2,1,2) &"!a9:b11"),2,FALSE) =VLOOKUP(b3,INDIRECT("'[mtn_ipbh_m40e_capacity_tool.xls]ero" & IF(a2=r1,1,2) &"!p3:q5001"),2,FALSE) Don Guillett Microsoft MVP Excel SalesAid Software "mcmilja" wrote in message ... Hello, I need help with creating a vlookup nested function using the following logic: IF A2=R1 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE) OR IF A2=R2 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE) Any help would be much appreciated! Thanks, Jaret |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Note: in Don's solution, both files will have to be open for INDIRECT to
work. Pete "Don Guillett" wrote in message ... modify this to suit =VLOOKUP(C2,INDIRECT("sheet" & IF(C3=B2,1,2) &"!a9:b11"),2,FALSE) =VLOOKUP(b3,INDIRECT("'[mtn_ipbh_m40e_capacity_tool.xls]ero" & IF(a2=r1,1,2) &"!p3:q5001"),2,FALSE) Don Guillett Microsoft MVP Excel SalesAid Software "mcmilja" wrote in message ... Hello, I need help with creating a vlookup nested function using the following logic: IF A2=R1 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER01 Interfaces'!$P$3:$Q$5001,2,FALSE) OR IF A2=R2 then VLOOKUP(B3,'[MTN_IPBH_M40E_Capacity_Tool.xls]ER02 Interfaces'!$P$3:$Q$5001,2,FALSE) Any help would be much appreciated! Thanks, Jaret |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF VLOOKUP Nested function | Excel Worksheet Functions | |||
Nested Vlookup and IF function???? | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Nested IF Function and VLookup Alternatives | Excel Worksheet Functions | |||
Nested if, sum & vlookup Function | Excel Worksheet Functions |