Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I must be dense! I can't understand any of the explanations of vlookup that I
find anywhere. I have a unique ProductID in column A of a spreadsheet named "Combined". I have a named range, "RepoData" on a spreadsheet named "Repo", which includes the same value in its column A, as column A of "Combined". I'm looking right at the value I want to return which is in column C of "Repo". Yet when I put the following formula in column AG of "Combined", I get "#N/A". What am I doing wrong? =VLOOKUP(A4,RepoData,3,FALSE) A4 is ProductID on "Combined" RepoData is the named range on "Repo" ProductID is in column A of RepoData I'm looking right at the correct matching product ID for the row in "Repo" The value in column C in RepoData is not returned. -- Bill Reed "If you can't laugh at yourself, laugh at somebody else" Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200711/1 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It has to be an exact match, so perhaps your ProductID contains
"numbers" that are really text values, and the content of A4 is a proper number. Try changing your formula to: =VLOOKUP(""&A4,RepoData,3,FALSE) to test it out. Hope this helps. Pete On Nov 12, 4:09 pm, "ragtopcaddy via OfficeKB.com" <u9289@uwe wrote: I must be dense! I can't understand any of the explanations of vlookup that I find anywhere. I have a unique ProductID in column A of a spreadsheet named "Combined". I have a named range, "RepoData" on a spreadsheet named "Repo", which includes the same value in its column A, as column A of "Combined". I'm looking right at the value I want to return which is in column C of "Repo". Yet when I put the following formula in column AG of "Combined", I get "#N/A". What am I doing wrong? =VLOOKUP(A4,RepoData,3,FALSE) A4 is ProductID on "Combined" RepoData is the named range on "Repo" ProductID is in column A of RepoData I'm looking right at the correct matching product ID for the row in "Repo" The value in column C in RepoData is not returned. -- Bill Reed "If you can't laugh at yourself, laugh at somebody else" Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Make sure that columns A to C are included in your "Repodata" range.
If that doesn't work, try replacing the named range with the sheet name instead. =VLOOKUP(A4,'Repo'!A1:C50,3,FALSE) -- Traa Dy Liooar Jock "ragtopcaddy via OfficeKB.com" wrote: I must be dense! I can't understand any of the explanations of vlookup that I find anywhere. I have a unique ProductID in column A of a spreadsheet named "Combined". I have a named range, "RepoData" on a spreadsheet named "Repo", which includes the same value in its column A, as column A of "Combined". I'm looking right at the value I want to return which is in column C of "Repo". Yet when I put the following formula in column AG of "Combined", I get "#N/A". What am I doing wrong? =VLOOKUP(A4,RepoData,3,FALSE) A4 is ProductID on "Combined" RepoData is the named range on "Repo" ProductID is in column A of RepoData I'm looking right at the correct matching product ID for the row in "Repo" The value in column C in RepoData is not returned. -- Bill Reed "If you can't laugh at yourself, laugh at somebody else" Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200711/1 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks to both of you for your suggestions. Jock had it right. Due to
programmer error ;-) column A was not getting selected during the named range creation. Now it is, and the vlookup works just fine. Thanks, Bill Jock wrote: Make sure that columns A to C are included in your "Repodata" range. If that doesn't work, try replacing the named range with the sheet name instead. =VLOOKUP(A4,'Repo'!A1:C50,3,FALSE) I must be dense! I can't understand any of the explanations of vlookup that I find anywhere. [quoted text clipped - 13 lines] I'm looking right at the correct matching product ID for the row in "Repo" The value in column C in RepoData is not returned. -- Bill Reed "If you can't laugh at yourself, laugh at somebody else" Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup to find two values first | Excel Discussion (Misc queries) | |||
find largest values, then return corresponding row values. | Excel Discussion (Misc queries) | |||
use vlookup or other to find the nearest values (<) or interpola | Excel Worksheet Functions | |||
FIND FORMULA SIMILAR TO VLOOKUP FOR NON-ASCENDING VALUES | Excel Worksheet Functions | |||
How do I use VLOOKUP to find values across more than 1 sheet or Wo | Excel Worksheet Functions |