Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default getting rid of #DIC/0!

is there something you can add to a formula so if it equals #DIV/0! the cell
will remain empty or blank?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default getting rid of #DIC/0!

Option I use, which might not be the best one, but works is


=IF(ISERROR("Put your formula here")=TRUE,0,"Your Formuala Here")

Bascially if your formula returns an error just as DIV or NA etc it returns 0

Hopes this helps

Tom

"James" wrote:

is there something you can add to a formula so if it equals #DIV/0! the cell
will remain empty or blank?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default getting rid of #DIC/0!

=IF(B1=0;"";A1/B1)
or -excel 12 only:
=IFERROR(A1/B1,"")


HTH. Best wishes Harald


"James" wrote in message
...
is there something you can add to a formula so if it equals #DIV/0! the
cell
will remain empty or blank?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default getting rid of #DIC/0!

=IF(B1=0,"",A1/B1)
--
David Biddulph

"James" wrote in message
...
is there something you can add to a formula so if it equals #DIV/0! the
cell
will remain empty or blank?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default getting rid of #DIC/0!

On 23 Jun, 16:55, James wrote:
is there something you can add to a formula so if it equals #DIV/0! the cell
will remain empty or blank?


You need an error trap, and there are several ways to do this. I'm
assuming your formula is =A1/B1. You'll need to adjust the following
formulae to refer to the cells that form the actual numerator and
denominator to your formula.

The most robust #DIV/0! error trap, in my opinion, is simply:

=IF(B1=0,0,A1/B1)

which returns a zero rather than #DIV/0! error. You could use:

=IF(B1=0,"",A1/B1)

if you want the cell to remain blank.

There are other ways to do it, such as using =IF(ISERROR(A1/B1),"",A1/
B1) or =IFERROR(A1/B1,"",A1/B1) if in Excel 2007.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default getting rid of #DIC/0!

thank you so much you just cleaned up my data

" wrote:

On 23 Jun, 16:55, James wrote:
is there something you can add to a formula so if it equals #DIV/0! the cell
will remain empty or blank?


You need an error trap, and there are several ways to do this. I'm
assuming your formula is =A1/B1. You'll need to adjust the following
formulae to refer to the cells that form the actual numerator and
denominator to your formula.

The most robust #DIV/0! error trap, in my opinion, is simply:

=IF(B1=0,0,A1/B1)

which returns a zero rather than #DIV/0! error. You could use:

=IF(B1=0,"",A1/B1)

if you want the cell to remain blank.

There are other ways to do it, such as using =IF(ISERROR(A1/B1),"",A1/
B1) or =IFERROR(A1/B1,"",A1/B1) if in Excel 2007.

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 08:03 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"