Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Vlook up returning N?A

We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Help Vlook up returning N?A

Hi Andy

Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--

Regards
Roger Govier

"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Help Vlook up returning N?A

Andy,

It is returning NA because it didn't find the value from cell A79.

Generally, wrap your first check in an ISERROR function:

=IF($A790,IF(ISERROR(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)),"",VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)),"")

HTH,
Bernie
MS Excel MVP


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Help Vlook up returning N?A

=IF($A790, IF(COUNTIF('BO Output'!$A$3:$A$2002,$A79),VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE),""))


"andy" wrote:

We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Help Vlook up returning N?A

In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??

"Roger Govier" wrote:

Hi Andy

Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--

Regards
Roger Govier

"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help Vlook up returning N?A

You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".

Hope this helps.

Pete

On Jan 18, 7:01*pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??



"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Help Vlook up returning N?A

The ISNA is working fine - it's the vlookup. I am using this:
=VLOOKUP($A8,'Plan & Track'!$A$3:$AN$2002,9,FALSE)
I am using vlookups on two worksheets - it returns "0" from one worksheet,
and <blank from the other. I don't see any differences in the cells I am
trying to find.
Any ideas?

"Mark" wrote:

In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??

"Roger Govier" wrote:

Hi Andy

Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--

Regards
Roger Govier

"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Help Vlook up returning N?A

yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?

"Pete_UK" wrote:

You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".

Hope this helps.

Pete

On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??



"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help Vlook up returning N?A

You could apply conditional formatting to the cell such that if the
content is 0 then use a foreground colour of white (which on a white
background will make the cell appear blank).

Hope this helps.

Pete

On Jan 18, 7:16*pm, Mark wrote:
yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?



"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Help Vlook up returning N?A

good idea, but - we are uploading the result into a db2 table, so we don't
want zeroes. Also, some of the legitimate data is "0".

"Pete_UK" wrote:

You could apply conditional formatting to the cell such that if the
content is 0 then use a foreground colour of white (which on a white
background will make the cell appear blank).

Hope this helps.

Pete

On Jan 18, 7:16 pm, Mark wrote:
yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?



"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help Vlook up returning N?A

If zero is a legitimite value, why do you want to get rid of it?

You could wrap what you have already in a formula along the lines of:

=IF(existing_formula=0,"",existing_formula)

to make sure that a blank is returned instead of zero, but your
formula will become unwieldy. If you are using the version that Roger
posted earlier, then you could amend it to this:

=IF($A79<=0,"",IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)),"",IF(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)=0,"",VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,0))))

which is slightly less cumbersome.

Hope this helps.

Pete

On Jan 18, 7:38*pm, Mark wrote:
good idea, but - we are uploading the result into a db2 table, so we don't
want zeroes. Also, some of the legitimate data is "0".



"Pete_UK" wrote:
You could apply conditional formatting to the cell such that if the
content is 0 then use a foreground colour of white (which on a white
background will make the cell appear blank).


Hope this helps.


Pete


On Jan 18, 7:16 pm, Mark wrote:
yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?


"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default Help Vlook up returning N?A

Thanks for the effort, but that did not work, either. The function is
returning zeroes for all blanks, and also returning a zero for a zero value.
This version blanks out the #N/As, which is good, but it also strips out all
of the legitimate zeroes.

"Pete_UK" wrote:

If zero is a legitimite value, why do you want to get rid of it?

You could wrap what you have already in a formula along the lines of:

=IF(existing_formula=0,"",existing_formula)

to make sure that a blank is returned instead of zero, but your
formula will become unwieldy. If you are using the version that Roger
posted earlier, then you could amend it to this:

=IF($A79<=0,"",IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)),"",IF(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)=0,"",VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,0))))

which is slightly less cumbersome.

Hope this helps.

Pete

On Jan 18, 7:38 pm, Mark wrote:
good idea, but - we are uploading the result into a db2 table, so we don't
want zeroes. Also, some of the legitimate data is "0".



"Pete_UK" wrote:
You could apply conditional formatting to the cell such that if the
content is 0 then use a foreground colour of white (which on a white
background will make the cell appear blank).


Hope this helps.


Pete


On Jan 18, 7:16 pm, Mark wrote:
yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?


"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help Vlook up returning N?A

So, you want zero to be returned if that is what is in the table, but
if the table entry is blank then you want a blank to be returned? If
so, try this modification:

=IF($A79<=0,"",IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)),"",IF(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)="","",VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,0))))

Hope this helps.

Pete

On Jan 18, 8:55*pm, Mark wrote:
Thanks for the effort, but that did not work, either. The function is
returning zeroes for all blanks, and also returning a zero for a zero value.
This version blanks out the #N/As, which is good, but it also strips out all
of the legitimate zeroes.



"Pete_UK" wrote:
If zero is a legitimite value, why do you want to get rid of it?


You could wrap what you have already in a formula along the lines of:


=IF(existing_formula=0,"",existing_formula)


to make sure that a blank is returned instead of zero, but your
formula will become unwieldy. If you are using the version that Roger
posted earlier, then you could amend it to this:


=IF($A79<=0,"",IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)),"",IF(VLOOKUP($A79,'BO Output'!$A$3:$P
$2002,4,0)=0,"",VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,0))))


which is slightly less cumbersome.


Hope this helps.


Pete


On Jan 18, 7:38 pm, Mark wrote:
good idea, but - we are uploading the result into a db2 table, so we don't
want zeroes. Also, some of the legitimate data is "0".


"Pete_UK" wrote:
You could apply conditional formatting to the cell such that if the
content is 0 then use a foreground colour of white (which on a white
background will make the cell appear blank).


Hope this helps.


Pete


On Jan 18, 7:16 pm, Mark wrote:
yes, it is finding the cell - if I plug in a value it works fine. How can I
force it to find a blank instead of a 0? Do I need to format the cells?


"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Vlook up returning N?A-Resolved

Pete_UK thanks for the help, mark's a coworker and i have new spreadsheet
to use! You rock!
--
andy


"Pete_UK" wrote:

You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".

Hope this helps.

Pete

On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??



"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -



  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Vlook up returning N?A

Thanks for your reply!
--
andy


"Bernie Deitrick" wrote:

Andy,

It is returning NA because it didn't find the value from cell A79.

Generally, wrap your first check in an ISERROR function:

=IF($A790,IF(ISERROR(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)),"",VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)),"")

HTH,
Bernie
MS Excel MVP


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy






  #16   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help Vlook up returning N?A

thanks for your reply.
--
andy


"Teethless mama" wrote:

=IF($A790, IF(COUNTIF('BO Output'!$A$3:$A$2002,$A79),VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE),""))


"andy" wrote:

We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")

How do i use isna function with this formula
--
andy

  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Help Vlook up returning N?A-Resolved

Well, thanks for feeding back, Andy.

Pete

On Jan 19, 1:25*am, andy wrote:
Pete_UK thanks for the help, *mark's a coworker and i have *new spreadsheet
to use! *You rock! *
--
andy



"Pete_UK" wrote:
You might have an empty cell in your table which is being found
correctly, but Excel returns it as zero rather than "".


Hope this helps.


Pete


On Jan 18, 7:01 pm, Mark wrote:
In some cases it is returning <blank, as desired, and in other cases it
returns "0". Does anyone know why??


"Roger Govier" wrote:
Hi Andy


Try
=IF($A790,
IF(ISNA(VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),""
,VLOOKUP($A79,'BO Output'!$A$3:$P$2002,4,FALSE)),"")


--


Regards
Roger Govier


"andy" wrote in message
...
We are using the following formula and it returns N/A
=IF($A790,IF(VLOOKUP($A79,'BO
Output'!$A$3:$P$2002,4,FALSE)="","",VLOOKUP($A79,' BO
Output'!$A$3:$P$2002,4,FALSE)),"")


How do i use isna function with this formula
--
andy- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
VLOOK up returning #N/A even though value exists in lookup array [email protected] Excel Worksheet Functions 1 September 4th 07 06:56 PM
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
VLOOK-pivot table expanding want to update vlook automatically CrimsonPlague29 Excel Worksheet Functions 0 August 8th 07 09:44 PM
Vlook bimseun Excel Worksheet Functions 3 May 27th 06 11:50 PM
VLOOK Adnan Excel Worksheet Functions 2 June 18th 05 04:30 PM


All times are GMT +1. The time now is 07:15 AM.

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"