Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kuansheng
 
Posts: n/a
Default how to remove #DIV/0!

Hi Guys,

I am trying to apply division on two cell and sometimes i will have 0
in both cell which will result in a 0 divided by 0 which excel will
prompt an error #DIV/0! . Snyone could advice me how can I replace the
error message with a 0 instead of #DIV/0!. What i am trying to get is
whenever there is a zero divide by a zero the result will show a zero
instead of #DIV/0! Thsnk you.

regards,
kuansheng

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default how to remove #DIV/0!

Hi!

One way:

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

Biff

"kuansheng" wrote in message
oups.com...
Hi Guys,

I am trying to apply division on two cell and sometimes i will have 0
in both cell which will result in a 0 divided by 0 which excel will
prompt an error #DIV/0! . Snyone could advice me how can I replace the
error message with a 0 instead of #DIV/0!. What i am trying to get is
whenever there is a zero divide by a zero the result will show a zero
instead of #DIV/0! Thsnk you.

regards,
kuansheng



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kuansheng
 
Posts: n/a
Default how to remove #DIV/0!

Thanks Biff. That very helpful...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default how to remove #DIV/0!

Another way:

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

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kuansheng
 
Posts: n/a
Default how to remove #DIV/0!

Thanks Pete. I tried both method they work like a charm. Learn
something new. Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default how to remove #DIV/0!

Biff's method traps all errors and returns a zero instead of the error
message, whereas my method specifically avoids the #DIV/0 error, as you
requested. If A1 contained some text, then you would get the error
message #VALUE if you used my formula - just different approaches.

Pete

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default how to remove #DIV/0!


...or...

=IF(B1,A1/B1,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=538716

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kuansheng
 
Posts: n/a
Default how to remove #DIV/0!

Thanks I have tried both method work great. Million thanks.

kuansheng

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
How to replace div/0 with a zero Jimbo43 Excel Discussion (Misc queries) 7 February 28th 06 05:57 PM
#DIV/0! query Brento Excel Discussion (Misc queries) 1 January 31st 06 11:58 PM
How to hide #DIV/0! in cells waiting for input? Pheasant Plucker® Excel Discussion (Misc queries) 4 January 26th 06 04:30 PM
replace "#DIV/0!" error with blanks Mark B Excel Worksheet Functions 0 June 22nd 05 10:19 AM
# DIV/0! error in Excel Helpwanted Excel Discussion (Misc queries) 8 May 6th 05 09:31 PM


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