Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding times


I'm trying to add the following list of times:
09:30 + 09:00 + 09:00 + 04:00 + 08:30 + 08:30 + 06:00 + 05:00 + 05:00 +
07:00 + 08:00 + 05:00 + 04:00 + 07:30

Using the following formula:
=IF(INT(ROUND(SUM(L4:L70)/0.04166667,2)) = 0, "",
INT(ROUND(SUM(L4:L70)/0.04166667,2)) &":" &
IF(MINUTE(MOD(SUM(L4:L70),1)) < 10, "0" & MINUTE(MOD(SUM(L4:L70),1)),
MINUTE(MOD(SUM(L4:L70),1))))

The problem lies in the part of the function marked in bold. This
function is working perfectly with all/most other combinations of
times.

Hopefully someone can help me.

Thanks,
Imelda.


--
mel_flynn
------------------------------------------------------------------------
mel_flynn's Profile: http://www.excelforum.com/member.php...o&userid=29206
View this thread: http://www.excelforum.com/showthread...hreadid=489376

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Adding times

Imelda,

Have you tried simply summing the values:

=SUM(L4:L70)

and using the custom format

[h]:mm

or

[m]:ss

(depends on how those values are actually entered....)

HTH,
Bernie
MS Excel MVP


"mel_flynn" wrote in message
...

I'm trying to add the following list of times:
09:30 + 09:00 + 09:00 + 04:00 + 08:30 + 08:30 + 06:00 + 05:00 + 05:00 +
07:00 + 08:00 + 05:00 + 04:00 + 07:30

Using the following formula:
=IF(INT(ROUND(SUM(L4:L70)/0.04166667,2)) = 0, "",
INT(ROUND(SUM(L4:L70)/0.04166667,2)) &":" &
IF(MINUTE(MOD(SUM(L4:L70),1)) < 10, "0" & MINUTE(MOD(SUM(L4:L70),1)),
MINUTE(MOD(SUM(L4:L70),1))))

The problem lies in the part of the function marked in bold. This
function is working perfectly with all/most other combinations of
times.

Hopefully someone can help me.

Thanks,
Imelda.


--
mel_flynn
------------------------------------------------------------------------
mel_flynn's Profile: http://www.excelforum.com/member.php...o&userid=29206
View this thread: http://www.excelforum.com/showthread...hreadid=489376



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
Adding times MBC Excel Worksheet Functions 3 October 6th 08 08:54 PM
adding times again B Bear New Users to Excel 14 August 30th 06 09:58 AM
Adding times Jaime Excel Worksheet Functions 1 August 11th 06 05:27 PM
Adding times Bobby New Users to Excel 3 August 6th 06 11:09 PM
Adding Times B. Jensen Excel Programming 4 April 1st 05 11:50 PM


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