#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jeda67
 
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
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



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
COUNTIF - #DIV/01 PW11111 Excel Discussion (Misc queries) 7 July 21st 05 11:09 AM


All times are GMT +1. The time now is 07:24 PM.

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"