#1   Report Post  
Posted to microsoft.public.excel.misc
C C is offline
external usenet poster
 
Posts: 61
Default Excel 2003 -#N/A

I have a VLookup which is returning #N/A, how can I have the formula return a
zero "0" in its place? I need to sum and the sheet is very large. Thanks for
any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Excel 2003 -#N/A

Maybe this

=IF(ISNA(VLOOKUP(C1,A1:B6,2,FALSE)),"",VLOOKUP(C1, A1:B6,2,FALSE))

Mike

"C" wrote:

I have a VLookup which is returning #N/A, how can I have the formula return a
zero "0" in its place? I need to sum and the sheet is very large. Thanks for
any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
C C is offline
external usenet poster
 
Posts: 61
Default Excel 2003 -#N/A

Mike
Thanks, but the formula is showing invalid, it has a problem with ,"", and
if I take that out I am still getting #N/A.
C

"Mike H" wrote:

Maybe this

=IF(ISNA(VLOOKUP(C1,A1:B6,2,FALSE)),"",VLOOKUP(C1, A1:B6,2,FALSE))

Mike

"C" wrote:

I have a VLookup which is returning #N/A, how can I have the formula return a
zero "0" in its place? I need to sum and the sheet is very large. Thanks for
any help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
C C is offline
external usenet poster
 
Posts: 61
Default Excel 2003 -#N/A

Mike, Thank you! I had a problem with the parentheses, and it now works.

"Mike H" wrote:

Maybe this

=IF(ISNA(VLOOKUP(C1,A1:B6,2,FALSE)),"",VLOOKUP(C1, A1:B6,2,FALSE))

Mike

"C" wrote:

I have a VLookup which is returning #N/A, how can I have the formula return a
zero "0" in its place? I need to sum and the sheet is very large. Thanks for
any help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Excel 2003 -#N/A

Try this approach:

=IF(ISNA(your_formula),0,your_formula)

Hope this helps.

Pete

On Jan 9, 2:54*pm, C wrote:
I have a VLookup which is returning #N/A, how can I have the formula return a
zero "0" in its place? *I need to sum and the sheet is very large. Thanks for
any help.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Excel 2003 -#N/A

=IF(ISNA(vlookup_formula),0,vlookup_formula)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"C" wrote in message
...
I have a VLookup which is returning #N/A, how can I have the formula return
a
zero "0" in its place? I need to sum and the sheet is very large. Thanks
for
any help.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Excel 2003 -#N/A

Others have shown the correct workaround formula:
=IF(ISNA(your_formula),0,your_formula). This has the drawback that
your_formula is typically evaluated twice -- first to test for NA and again
for the result in the False clause of the IF function. This is unavoidable
and may cause slower calculations. Just FYI and for anyone else reading
this, Excel 2007 introduced a new function named IFERROR. This eliminates
the need for the second your_formula:

=IFERROR(your_formula,0)

Here, your_formula is evaluated only once, not twice. If your_formula
doesn't return an error, its result is returned. If your_formula does result
in an error, 0 is returned. Alas, this is not available in 2003 and earlier.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting LLC
www.cpearson.com
(email on the web site)

"C" wrote in message
...
I have a VLookup which is returning #N/A, how can I have the formula return
a
zero "0" in its place? I need to sum and the sheet is very large. Thanks
for
any help.



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
unable to paste Excel 2003 chart into Outlook 2003 Fat Frog Charts and Charting in Excel 0 August 7th 07 05:26 PM
opening excel files from access 2003, win xp, office 2003 Nugimac Excel Discussion (Misc queries) 2 April 26th 07 12:32 PM
import Excel 2003 file into Outlook 2003 - NO NAMED RANGES?? lewisma9 Excel Discussion (Misc queries) 0 February 27th 07 12:23 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM


All times are GMT +1. The time now is 04:02 PM.

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

About Us

"It's about Microsoft Excel"