Multiple VLOOKUP's

PVGoshia

New Member
Joined
Jun 20, 2011
Messages
8
I have a three sheet worksheet and on Sheet "1" I am doing VLOOKUP's over to Sheet 'UL1703 Re-Test WS' as seen below. So with the formuls below if F6="Y" my VLOOKUP goes to line "7" of the worksheet and populates the colunm. My question is how do I get the lookup to work with 2 or more LOOKUP's in one command.

=IF(F6="Y",VLOOKUP(7,'UL1703 Re-Test WS'!A1:B23,2,FALSE))
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You should have

Code:
=IF(F6="Y",VLOOKUP(7,'UL1703 Re-Test WS'!A1:B23,2,FALSE),"")

assuming Column A has numbers in them 1,2,3,4,5,6,7 etc

so if F6 is not Y then also vlookup another value?

Code:
=IF(F6="Y",VLOOKUP(7,'UL1703 Re-Test WS'!A1:B23,2,FALSE),VLOOKUP(1,'UL1703 Re-Test WS'!A1:B23,2,FALSE))
 
Upvote 0
Yes Column A are number 1,2,3,4,5....

However changing the formula by just adding a comma the adding the same VLOOKUP(1,UL1703 Re-Test WS'!A1:B23,2,FALSE)) and only changing the number to lookup only returns me the first lookup not both?
 
Upvote 0
what 2nd lookup do you want like get rows 6 & 7 in the same cell?

Code:
=IF(F6="Y",VLOOKUP(6,'UL1703 Re-Test WS'!A1:B23,2,FALSE)&VLOOKUP(7,'UL1703 Re-Test WS'!A1:B23,2,FALSE) ,""))
 
Upvote 0
So when the VLOOKUP work for search "1" in returns to sheet 1 (Temp Test) and if I could get second aggument to work I would like with both of them working return "Temp Test, Damp Heat Test" (1,7) in the lookup.
 
Upvote 0
=IF(F6="Y",VLOOKUP(1,'UL1703 Re-Test WS'!A1:B23,2,FALSE)&", "&VLOOKUP(7,'UL1703 Re-Test WS'!A1:B23,2,FALSE) ,""))</pre>
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top