#1   Report Post  
Posted to microsoft.public.excel.misc
careyc
 
Posts: n/a
Default Dividing by zero


I made a template where one column is to display the result of a formula
of numbers entered into other columns. The formula contains a division,
which prompts the result cell to display #DIV/0! until a number is
entered into the cell that corresponds with the denominator in the
formula. Although it doesn't affect the functionality of the template,
I don't want the result column to show #DIV/0! if the denominator cell
is blank. Is there a way to do this?

Thanks in advance!
Excel 2003


--
careyc
------------------------------------------------------------------------
careyc's Profile: http://www.excelforum.com/member.php...o&userid=26064
View this thread: http://www.excelforum.com/showthread...hreadid=523709

  #2   Report Post  
Posted to microsoft.public.excel.misc
Cutter
 
Posts: n/a
Default Dividing by zero


You can wrap your formula in an IF() function

Try this:

=IF(ISERR(your formula),"",your formula)

This will show a blank cell if your formula returns any error and shows
a value if your formula returns anything other than an error


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=523709

  #3   Report Post  
Posted to microsoft.public.excel.misc
careyc
 
Posts: n/a
Default Dividing by zero


I put it in and it worked perfectly.

Much appreciation for your help! :)


--
careyc
------------------------------------------------------------------------
careyc's Profile: http://www.excelforum.com/member.php...o&userid=26064
View this thread: http://www.excelforum.com/showthread...hreadid=523709

  #4   Report Post  
Posted to microsoft.public.excel.misc
Cutter
 
Posts: n/a
Default Dividing by zero


You're quite welcome. Glad to help.

I should have added an extra note: The formula I gave you will result
in a blank for all errors except the #N/A error. If you have trouble
with that one as well then change the formula to be ISERROR instead of
ISERR.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=523709

  #5   Report Post  
Posted to microsoft.public.excel.misc
careyc
 
Posts: n/a
Default Dividing by zero


I'll keep that one in mind if the problem ever occurs.

Thanks again!


--
careyc
------------------------------------------------------------------------
careyc's Profile: http://www.excelforum.com/member.php...o&userid=26064
View this thread: http://www.excelforum.com/showthread...hreadid=523709



  #6   Report Post  
Posted to microsoft.public.excel.misc
manxman
 
Posts: n/a
Default Dividing by zero

In the formula cell direct no entry at all until there is a number in the
denominator cell by entering this assume the denominator cell is A1.
=if(A1="","",B1/A1).

"careyc" wrote:


I made a template where one column is to display the result of a formula
of numbers entered into other columns. The formula contains a division,
which prompts the result cell to display #DIV/0! until a number is
entered into the cell that corresponds with the denominator in the
formula. Although it doesn't affect the functionality of the template,
I don't want the result column to show #DIV/0! if the denominator cell
is blank. Is there a way to do this?

Thanks in advance!
Excel 2003


--
careyc
------------------------------------------------------------------------
careyc's Profile: http://www.excelforum.com/member.php...o&userid=26064
View this thread: http://www.excelforum.com/showthread...hreadid=523709


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
cumulative adding and dividing problems! Judi-mae Excel Discussion (Misc queries) 1 January 4th 06 11:54 AM
Formulas when dividing with negative numbers Performance Nashbar Excel Worksheet Functions 1 August 30th 05 11:50 PM
New installed Excel2003 keeps dividing any number entered in any . Jan E. Sørensen Excel Discussion (Misc queries) 3 February 16th 05 02:29 PM
What is the formula for dividing a number by 4 in excel Blessingspoint Excel Worksheet Functions 1 January 13th 05 05:58 PM
Where do i change the settings my normal template is dividing all. uno Setting up and Configuration of Excel 2 December 18th 04 12:09 AM


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