Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Dividing zero by zero

In my work sheet 2 column with numbers and in some columns both numbers are
zeros. Is there any forlume I can use in order to get zero as result not
#DIV/0!
Please advice.
Sanjeev
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Dividing zero by zero

By far the simplest way is to check if the cell contains zero

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

Mike

"Sanjeev Raghavan" wrote:

In my work sheet 2 column with numbers and in some columns both numbers are
zeros. Is there any forlume I can use in order to get zero as result not
#DIV/0!
Please advice.
Sanjeev

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Dividing zero by zero

Thank you Mike.

"Mike H" wrote:

By far the simplest way is to check if the cell contains zero

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

Mike

"Sanjeev Raghavan" wrote:

In my work sheet 2 column with numbers and in some columns both numbers are
zeros. Is there any forlume I can use in order to get zero as result not
#DIV/0!
Please advice.
Sanjeev

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJE TJE is offline
external usenet poster
 
Posts: 1
Default Dividing zero by zero

Mike, I'm having a similar problem, I have two columns of numbers where
either or both arguments can be zero. I want to turn this into a percentage,
returning 0 if appropriate.

How do you add to the formula you've recommended to cover both arguments -
e.g. if I want to calculate A5/A10 and A5 and A10 are both zero? Using the
answer you gave is fine for the first column but I've been unable to amend it
to cover the second column?


"Mike H" wrote:

By far the simplest way is to check if the cell contains zero

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

Mike

"Sanjeev Raghavan" wrote:

In my work sheet 2 column with numbers and in some columns both numbers are
zeros. Is there any forlume I can use in order to get zero as result not
#DIV/0!
Please advice.
Sanjeev

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default Dividing zero by zero

Hi TJE

It doesn't mater if the Dividend is 0, you only need to check the
Divisor to ensure you don't get a Divide by zero error.

If you want a 0 as the result then amend the formula to
=IF(A10=0,0,A5/A10)

--
Regards
Roger Govier

TJE wrote:
Mike, I'm having a similar problem, I have two columns of numbers where
either or both arguments can be zero. I want to turn this into a percentage,
returning 0 if appropriate.

How do you add to the formula you've recommended to cover both arguments -
e.g. if I want to calculate A5/A10 and A5 and A10 are both zero? Using the
answer you gave is fine for the first column but I've been unable to amend it
to cover the second column?


"Mike H" wrote:

By far the simplest way is to check if the cell contains zero

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

Mike

"Sanjeev Raghavan" wrote:

In my work sheet 2 column with numbers and in some columns both numbers are
zeros. Is there any forlume I can use in order to get zero as result not
#DIV/0!
Please advice.
Sanjeev

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
Dividing by Zero TomRW Excel Discussion (Misc queries) 3 March 17th 08 08:57 PM
Dividing name kd Excel Worksheet Functions 1 April 19th 07 04:48 AM
Dividing by zero careyc Excel Discussion (Misc queries) 5 March 17th 06 11:03 PM
dividing columns by 100 Sgian Excel Discussion (Misc queries) 2 April 22nd 05 02:37 PM
dividing a row LostNFound Excel Worksheet Functions 2 March 7th 05 05:49 PM


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