View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dave Dave is offline
external usenet poster
 
Posts: 1,388
Default Vlookup: giving me REF# problems. Help

Here is what I would like a formula to do???

I have two workbooks- I will place the formula only in one and extract
data/info. from the other.

What I want the formula to do is...
I want it to search through a column of product codes from the other
workbook (numbers, e.g. 21, 22) and when the desired code (let's say 21) is
detected. I want it to return the information (text info) from a different
column (I.E. transaction description) but the same row as the desired result
(21).

HERE IS WHAT I HAVE BEEN TOLD AND HAVE DONE BUT DOES NOT WORK...
What I get back is a reference error (REF)...Why is this occuring? What can
I do to try to fix it?
If I change the column I want back the only one that gives me anything is 1.
And it just returns 21??


Your product code is in column A of both and your text to return is in
column B of Sheet2, then in Sheet1, type:

=VLOOKUP(A2,Sheet2!A:B,2,0)

This will return the value in sheet2, column A that matches the value in A2
of Sheet1 and return the matching value from column B.

If your product is in column B and text is in A, it will not work. you must
start with the lookup value and return a value to the right of it.