lookup

G

George

I have 3 spreadsheet files 2 are look up tables. Basically
they contain catalog information from 2 different companies.

On the main spreadsheet if comany A is put in say cell A1

I want to look up the information in that companies catalog eor look up tabl
and move the pricing info to the main sheet for the part that is selected.

I'm not sure how to go about it?
 
N

Norman Harker

Hi George!

It looks like you need a formula like:

=IF($A$1="ABC Co",VLOOKUP(A7,ABC_Table,2,FALSE),IF($A$1="DEF
Co",VLOOKUP(A7,DEF_Table,2,FALSE),""))

Based on the entry in A1 you look up the entry in A7 in the
appropriate table. If A1 is "" it returns "". If you want to cover A7
being blank use:

=IF(A7="","",IF($A$1="ABC
Co",VLOOKUP(A7,ABC_Table,2,FALSE),IF($A$1="DEF
Co",VLOOKUP(A7,DEF_Table,2,FALSE),"")))
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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

Similar Threads

Creating a Chart on form from selected data in query. 0
vertical and horizontal lookup? 1
Lookup functions always return n/a ??? 3
help! 4
Mail Merge query 1
Lookup 0
Excel Lookup 1
What type of "lookup" 3

Top