Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Need help with vlookup nested function

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Need help with vlookup nested function

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Need help with vlookup nested function

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


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Need help with vlookup nested function

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




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Need help with vlookup nested function

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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF VLOOKUP Nested function Paul LeBlanc Excel Worksheet Functions 5 September 26th 06 02:49 PM
Nested Vlookup and IF function???? Simon Lloyd Excel Worksheet Functions 6 May 14th 06 10:21 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Nested IF Function and VLookup Alternatives robert.holmes Excel Worksheet Functions 1 December 12th 05 10:28 PM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"