Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Zeros problem in LOOKUP?

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Zeros problem in LOOKUP?

To answer your question, probably.

If you want to suppress #N/A errors, then do the following:
=IF(ISNA(VLOOKUP([your vlookup criteria]),"",VLOOKUP([your vlookup criteria]))

This basically says, in plain English "IF the VLOOKUP returns a #N/A error,
THEN return an empty string, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Danopnu" wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Zeros problem in LOOKUP?

This would work, but the correct value is out in the range- its just not
bringing back the value like its supposed to- what I am trying to say is that
it should not be pointing to something that would return the #N/A error- it
has a solid number to look for

"Dave F" wrote:

To answer your question, probably.

If you want to suppress #N/A errors, then do the following:
=IF(ISNA(VLOOKUP([your vlookup criteria]),"",VLOOKUP([your vlookup criteria]))

This basically says, in plain English "IF the VLOOKUP returns a #N/A error,
THEN return an empty string, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Danopnu" wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Zeros problem in LOOKUP?

If the list you are looking up from is not in alpha or numerical order it can
cause the #NA error.

"Danopnu" wrote:

This would work, but the correct value is out in the range- its just not
bringing back the value like its supposed to- what I am trying to say is that
it should not be pointing to something that would return the #N/A error- it
has a solid number to look for

"Dave F" wrote:

To answer your question, probably.

If you want to suppress #N/A errors, then do the following:
=IF(ISNA(VLOOKUP([your vlookup criteria]),"",VLOOKUP([your vlookup criteria]))

This basically says, in plain English "IF the VLOOKUP returns a #N/A error,
THEN return an empty string, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Danopnu" wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Zeros problem in LOOKUP?

If you're retyping the formula, then this isn't the problem.

But if you're copying (or even dragging down the column), then that range on
Sheet5 will change with every row you drag down.

For instance, I get this on the second row after I drag it down:

=VLOOKUP($AK8,Sheet5!D4:CE35,80,FALSE)

Notice that the range on Sheet5 now points at D4:C35. If the matching data was
above that range, you'll get #n/a's.

I'd use:

=VLOOKUP($AK7,Sheet5!$D$3:$CE$34,80,FALSE)

so that those references on sheet5 don't change when I copy the formula.





Danopnu wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Zeros problem in LOOKUP?

Two other things to look out for:

if you are looking up numbers, ensure that you really do have numbers
and not text values that look like numbers (i.e. may appear that the
value is in the table, but if one is text then a match will not be
found).

if you are looking up text values, ensure that you do not have leading
or trailing spaces (which are not visible, so the entry may "look" the
same).

Hope this helps.

Pete

Danopnu wrote:
This would work, but the correct value is out in the range- its just not
bringing back the value like its supposed to- what I am trying to say is that
it should not be pointing to something that would return the #N/A error- it
has a solid number to look for

"Dave F" wrote:

To answer your question, probably.

If you want to suppress #N/A errors, then do the following:
=IF(ISNA(VLOOKUP([your vlookup criteria]),"",VLOOKUP([your vlookup criteria]))

This basically says, in plain English "IF the VLOOKUP returns a #N/A error,
THEN return an empty string, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Danopnu" wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 187
Default Zeros problem in LOOKUP?

Vlookup sometimes gives some errors like this. Give a 'name' to your range
and put the name in place of (Sheet5!D3:CE34). This will work if it has a
solid number to look for.

Regards,

Jaleel

"Danopnu" wrote:

This would work, but the correct value is out in the range- its just not
bringing back the value like its supposed to- what I am trying to say is that
it should not be pointing to something that would return the #N/A error- it
has a solid number to look for

"Dave F" wrote:

To answer your question, probably.

If you want to suppress #N/A errors, then do the following:
=IF(ISNA(VLOOKUP([your vlookup criteria]),"",VLOOKUP([your vlookup criteria]))

This basically says, in plain English "IF the VLOOKUP returns a #N/A error,
THEN return an empty string, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Danopnu" wrote:

I have a working LOOKUP function in a spreadsheet referencing another page,
but when I copy it, or even retype it in the other rows, it returns the #N/A
error. The only difference that I can see is that for some of the other rows,
there are 0 amounts- could that be messing it up? This is what the working
one is:
=VLOOKUP($AK7,Sheet5!D3:CE34,80,FALSE), and this the non working in the
next row:
=VLOOKUP($AK8,Sheet5!D3:CE34,80,FALSE)

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
Lookup problem: Row height doesnt adjust Kevryl Excel Discussion (Misc queries) 6 July 11th 06 02:15 AM
LOOKUP function problem? DORI Excel Worksheet Functions 0 November 27th 05 11:45 PM
Vertical Lookup problem William Excel Worksheet Functions 3 November 22nd 05 11:48 AM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:32 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"