Vlookup in 3 worksheets

  • Thread starter inta251 via OfficeKB.com
  • Start date
I

inta251 via OfficeKB.com

4 worksheets
1-Retail
2-Distributor
3-Wholesale

in first 3 worksheets
columnA item #
columnB item price

on each worksheet price is different

4-Order
A1=list (names worksheets: Retail, Distributor and Wholesale)
A2=item #
B2= need add to formula
=IF($A2="","",VLOOKUP($A2,retail!$A$3:$H$200,2,FALSE))
if in cell A1 = Retail LOOK in retail worksheet OR
A1 = Distributor LOOK in distributor worksheet OR
A1 = Wholesale LOOk in wholesale worksheet

Thanks in advance.
 
L

LesG

=IF($A2="Retail",VLOOKUP($A2,retail!$A$3:$H$200,2,FALSE),if($A2="Distributor",VLOOKUP($A2,Distributor!$A$3:$H$200,2,FALSE),VLOOKUP($A2,Wholesale!$A$3:$H$200,2,FALSE),"")

should work, but i have not tested it
 
L

LesG

sorry finger problem whilst typing... try
=IF($A2="Retail",VLOOKUP($A2,retail!$A$3:$H$200,2,FALSE),if($A2="Distributor",VLOOKUP($A2,Distributor!$A$3:$H$200,2,FALSE),if($A2="Wholesale",VLOOKUP($A2,Wholesale!$A$3:$H$200,2,FALSE),"")
 
I

inta251 via OfficeKB.com

LesG said:
sorry finger problem whilst typing... try
=IF($A2="Retail",VLOOKUP($A2,retail!$A$3:$H$200,2,FALSE),if($A2="Distributor",VLOOKUP($A2,Distributor!$A$3:$H$200,2,FALSE),if($A2="Wholesale",VLOOKUP($A2,Wholesale!$A$3:$H$200,2,FALSE),"")


Thanks LesG.

A1=list (names worksheets: Retail, Distributor and Wholesale)
A2=item #
as you see i need 2 criteria A1 and A2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top