#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLOOKUP

I am not getting a vaule (getting #N/A) on some of my look ups. I am
wondering if it is because I have a formula in the cell instead of a value.
Can I have a formula in my lookup field?

Thanks,

Steph
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP


Hi,

Vlookup will pick up a cell with a formula. The problem may be that the
table in the lookup needs to be fixed by making the range absolute

e.g $A$1:$G$8


More on Vlookup's on the attached link

http://www.mrexcel.com/tip096.shtml

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569104

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 268
Default VLOOKUP

A #N/A error occurs when the value you use as criteria is not found in the
lookuptable. If you say =VLOOKUP(A2,$G$1:$L$310,4,FALSE), and A2 contains
the number 1234, but there is no number 1234 in G!:G310, the formula will
retun #N/A
if you say =
IF(ISNA(VLOOKUP(A2,$G$1:$L$310,4,FALSE)),"",VLOOKU P(A2,$G$1:$L$310,4,FALSE),
you will not get the #N/A result. Instead you will get a blank cell. You
can of course change the "" to anything else.

"steph44haf" wrote:

I am not getting a vaule (getting #N/A) on some of my look ups. I am
wondering if it is because I have a formula in the cell instead of a value.
Can I have a formula in my lookup field?

Thanks,

Steph

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLOOKUP

Unfortunately your responses were not helpful, but thank you.

We do have the absolute range for the lookup table. If we put the formula
in to get let's say 10742 it doesn't work, but if we type in 10742 the
VLOOKUP works. So I think there is an issue here using a formula. (If the
formula says G9124 it works.)

Can anyone else comment?

Thanks,

Stephanie

"steph44haf" wrote:

I am not getting a vaule (getting #N/A) on some of my look ups. I am
wondering if it is because I have a formula in the cell instead of a value.
Can I have a formula in my lookup field?

Thanks,

Steph

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP


Why don't you post the example ??


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569104



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLOOKUP

Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
Entry'!B3)
Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)

If Column A = G6354, Column B gives correct description ex "Gloves"
If Column A = 26354, Column B can't find match and gives "#N/A"
If we type in 26354 (instead of formula) in Column A, Column B gives correct
desctiption ex "Hats"

Thanks,



"VBA Noob" wrote:


Why don't you post the example ??


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569104


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default VLOOKUP

Steph,
I've had something like that happen to me and what I did was use Value(cell)
to make sure it was a number. (They looked like numbers to me but apparenly
Excel thought some of them were text...) However, you appear to have both
numbers and letters working here so I don't know how well that would work for
you.

I would check and make sure that whatever the lookup value type is (number,
text) is the same as the type on the lookup table.

Hope this helps to point you where to look,
Alicia



"steph44haf" wrote:

Column A =IF('PM & PDA Use-PO Data Entry'!B3=0," ",'PM & PDA Use-PO Data
Entry'!B3)
Column B =VLOOKUP(A1,Sheet2!$A$1:$B$17000,2,FALSE)

If Column A = G6354, Column B gives correct description ex "Gloves"
If Column A = 26354, Column B can't find match and gives "#N/A"
If we type in 26354 (instead of formula) in Column A, Column B gives correct
desctiption ex "Hats"

Thanks,



"VBA Noob" wrote:


Why don't you post the example ??


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569104


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"