Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Zero divided by Zero

Is there a formula that will allow zero divied by zero to equal zero
rather than giving an error?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Zero divided by Zero

Maybe use an IF statement to check if the divisor is 0

A1=0 or any number
B1=0

In C1, enter

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


--
Hope that helps.

Vergel Adriano


"TheNYCer" wrote:

Is there a formula that will allow zero divied by zero to equal zero
rather than giving an error?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Zero divided by Zero

you could also nest two IF's...

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

that way if either cell is equal to zero it will not return the divide by
zero error but instead return 0.

"Vergel Adriano" wrote:

Maybe use an IF statement to check if the divisor is 0

A1=0 or any number
B1=0

In C1, enter

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


--
Hope that helps.

Vergel Adriano


"TheNYCer" wrote:

Is there a formula that will allow zero divied by zero to equal zero
rather than giving an error?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Zero divided by Zero

Hi Stephen,

I believe the problem happens only when you divide a number by 0. 0 divided
by a non 0 value will equal to 0, so you need not check if A1 is 0.


--
Hope that helps.

Vergel Adriano


"Stephen" wrote:

you could also nest two IF's...

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

that way if either cell is equal to zero it will not return the divide by
zero error but instead return 0.

"Vergel Adriano" wrote:

Maybe use an IF statement to check if the divisor is 0

A1=0 or any number
B1=0

In C1, enter

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


--
Hope that helps.

Vergel Adriano


"TheNYCer" wrote:

Is there a formula that will allow zero divied by zero to equal zero
rather than giving an error?


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
Revenue divided by Day How? Qazi Ahmad Excel Discussion (Misc queries) 4 April 18th 07 07:10 AM
365-day divided into 13 periods helen Excel Discussion (Misc queries) 7 October 24th 06 04:13 PM
returning zero on pct divided by zero dave99 Excel Discussion (Misc queries) 2 January 7th 06 08:47 PM
Amount is divided by 100 Kanga Excel Discussion (Misc queries) 2 October 13th 05 02:01 PM
Why are my cell being divided by 100? Bill Excel Worksheet Functions 2 June 15th 05 10:06 PM


All times are GMT +1. The time now is 09:27 AM.

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"