A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

divide by zero error



 
 
Thread Tools Display Modes
  #1  
Old November 12th, 2009, 02:35 PM posted to microsoft.public.excel.misc
susancca
external usenet poster
 
Posts: 6
Default divide by zero error

getting the divide by zero error with this formula

=IF(F175=0,0,+F175/L155)

F175=sum of cells equaling 4
L155=sum of cells equaling 0

any help?
  #2  
Old November 12th, 2009, 02:41 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default divide by zero error

Try

=IF(AND(F1750,L1550),F175/L155,"")

If this post helps click Yes
---------------
Jacob Skaria


"susancca" wrote:

getting the divide by zero error with this formula

=IF(F175=0,0,+F175/L155)

F175=sum of cells equaling 4
L155=sum of cells equaling 0

any help?

  #3  
Old November 12th, 2009, 03:41 PM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default divide by zero error

Firstly you don't need the + before F175/H155
Secondly you don't need to test for F175 being zero, because if F175 is zero
and you divide it by anything non-zero you'll get zero anyway.

What you need to test for to avoid a #DIV/0! error is L155 being zero.
=IF(F155=0,"",F175/L155)
--
David Biddulph


"susancca" wrote in message
...
getting the divide by zero error with this formula

=IF(F175=0,0,+F175/L155)

F175=sum of cells equaling 4
L155=sum of cells equaling 0

any help?



  #4  
Old November 12th, 2009, 03:57 PM posted to microsoft.public.excel.misc
CLR
external usenet poster
 
Posts: 1,638
Default divide by zero error

"L155=sum of cells equaling 0"...?

Should that be "count of cells equalling 0"?

=IF(ISERROR(IF(F175=0,0,F175/L155)),"",IF(F175=0,0,F175/L155))


Vaya con Dios,
Chuck, CABGx3





"susancca" wrote:

getting the divide by zero error with this formula

=IF(F175=0,0,+F175/L155)

F175=sum of cells equaling 4
L155=sum of cells equaling 0

any help?

  #5  
Old November 12th, 2009, 04:37 PM posted to microsoft.public.excel.misc
Joe User[_2_]
external usenet poster
 
Posts: 757
Default divide by zero error

"susancca" wrote:
getting the divide by zero error with this formula
=IF(F175=0,0,+F175/L155)


It is sufficient to write:

=IF(L155=0, 0, F175/L155)

F175/L155 results in zero naturally when F175 is zero or empty.
  #6  
Old November 12th, 2009, 09:04 PM posted to microsoft.public.excel.misc
susancca
external usenet poster
 
Posts: 6
Default divide by zero error

Thank you very much! this helped tremendously and I can fix my managers
spreadsheet !

"David Biddulph" wrote:

Firstly you don't need the + before F175/H155
Secondly you don't need to test for F175 being zero, because if F175 is zero
and you divide it by anything non-zero you'll get zero anyway.

What you need to test for to avoid a #DIV/0! error is L155 being zero.
=IF(F155=0,"",F175/L155)
--
David Biddulph


"susancca" wrote in message
...
getting the divide by zero error with this formula

=IF(F175=0,0,+F175/L155)

F175=sum of cells equaling 4
L155=sum of cells equaling 0

any help?



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.