Lookup to various workbooks

L

lehigh46

Hi All

I have 5 workbooks which are all structured the same but contain
different pricing on the lists within them.
I'll name them A, B, C, D & E
I have yet another workbook named "Pricing"

I want to do a lookup from "Pricing" to one of the "lettered"
workbooks AND one of the items within.
It's sort of a compound lookup. How could I set up the formulas in the
"Pricing" book for all the items and have a letter code at the top of
the sheet for A, B etc., to choose which book I'm taking the pricing
from?


Thanks very much for your help
 
R

Roger Govier

Hi

I would have all the data in one workbook on separate Sheets.
Create some defined names for the different pricelists
Insert>Name>Define>Name> List A Refers to SheetA!$A$1:$Z$100
Make the range sufficient to cover all of your rows and columns
Repeat for ListB, ListC and ListD

On the Pricing sheet assuming the product ID is in column A and the List you
want to take the price from is in column B, then use
=VLOOKUP(A2,INDIRECT("List"&B2),offset,0)
where offset is the column number in the list from where you want to extract
the data.
 

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