#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default #n/a

How do have Excel default the #n/a to display a zero by using a MACRO
--
Mike Davis
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default #n/a

You dont have to use a macro for this, wrap your formula in a isna:
if(isna(formula),"0",formula)

basically the same thing if you do it in a macro.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Mike Davis" wrote:

How do have Excel default the #n/a to display a zero by using a MACRO
--
Mike Davis

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default #n/a

If the #N/A is caused by a lookup or match formula, then you can do
this to your formula:

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

Hope this helps.

Pete

On May 7, 2:15*pm, Mike Davis
wrote:
How do have Excel default the #n/a to display a zero by using a MACRO
--
Mike Davis


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



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