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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Div/01



 
 
Thread Tools Display Modes
  #1  
Old December 15th, 2005, 10:19 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default #Div/01


=(TRUNC(C4)*60+(C4-TRUNC(C4))*100)/(TRUNC(G4)*60+(G4-TRUNC(G4))*100)
I have this formula in one of my spreadsheets, the only problem I have
is when I don't have amounts in e.g C4 and then G4 I get a #div01 not a
zero.

Is there anyway if I haven't got amounts in the cells this refers to
that I can get a zero so the sum that adds up the columns with this
formula in it adds up.


--
jeda67
------------------------------------------------------------------------
jeda67's Profile: http://www.excelforum.com/member.php...o&userid=26781
View this thread: http://www.excelforum.com/showthread...hreadid=493739

  #2  
Old December 15th, 2005, 10:27 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default #Div/01

=IF(OR(C4=0,G4=0),0,(TRUNC(C4)*60+(C4-TRUNC(C4))*100)/(TRUNC(G4)*60+(G4-TRUN
C(G4))*100))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"jeda67" wrote in
message ...

=(TRUNC(C4)*60+(C4-TRUNC(C4))*100)/(TRUNC(G4)*60+(G4-TRUNC(G4))*100)
I have this formula in one of my spreadsheets, the only problem I have
is when I don't have amounts in e.g C4 and then G4 I get a #div01 not a
zero.

Is there anyway if I haven't got amounts in the cells this refers to
that I can get a zero so the sum that adds up the columns with this
formula in it adds up.


--
jeda67
------------------------------------------------------------------------
jeda67's Profile:

http://www.excelforum.com/member.php...o&userid=26781
View this thread: http://www.excelforum.com/showthread...hreadid=493739



 




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 06:25 PM.


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