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 Time (hours and minutes)


Hi guys,

I am trying to add up the time in one of my rows. How do I do that ??

For example I have the following times in my row E

E2 10.15
E3 1.25
E4 4.45
E5 2.15


The Total will now be 18 hrs 40 minutes ( adding manually)

But how I do that in Excel to get the right number of hours and
minutes. I did try to format the cells as Time. But the result is
something weird.

Any help ??


--
bengaluru
------------------------------------------------------------------------
bengaluru's Profile: http://www.excelforum.com/member.php...o&userid=24188
View this thread: http://www.excelforum.com/showthread...hreadid=384421

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Adding Time (hours and minutes)

On Mon, 4 Jul 2005 20:00:33 -0500, bengaluru
wrote:


Hi guys,

I am trying to add up the time in one of my rows. How do I do that ??

For example I have the following times in my row E

E2 10.15
E3 1.25
E4 4.45
E5 2.15


The Total will now be 18 hrs 40 minutes ( adding manually)

But how I do that in Excel to get the right number of hours and
minutes. I did try to format the cells as Time. But the result is
something weird.

Any help ??


If your "." is the time separator in your locale, then you can merely SUM the
column.

If your "." is the decimal separator, and not the time separator, then try this
array-entered formula:

=SUM(--SUBSTITUTE(E2:E5,".",":"))

To array-enter a formula, after typing of pasting it into the cell, hold down
<ctrl<shift while hitting <enter. XL will place braces {...} around the
formula.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Adding Time (hours and minutes)

Hi Ron, great formula!

I got the value 0.777778 in the sum....just wanted the OP to know he might
need to reformat the result cell as time.

Bill


"Ron Rosenfeld" wrote in message
...
On Mon, 4 Jul 2005 20:00:33 -0500, bengaluru
wrote:


Hi guys,

I am trying to add up the time in one of my rows. How do I do that ??

For example I have the following times in my row E

E2 10.15
E3 1.25
E4 4.45
E5 2.15


The Total will now be 18 hrs 40 minutes ( adding manually)

But how I do that in Excel to get the right number of hours and
minutes. I did try to format the cells as Time. But the result is
something weird.

Any help ??


If your "." is the time separator in your locale, then you can merely SUM
the
column.

If your "." is the decimal separator, and not the time separator, then try
this
array-entered formula:

=SUM(--SUBSTITUTE(E2:E5,".",":"))

To array-enter a formula, after typing of pasting it into the cell, hold
down
<ctrl<shift while hitting <enter. XL will place braces {...} around
the
formula.


--ron



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Adding Time (hours and minutes)

On Mon, 4 Jul 2005 22:12:48 -0400, "William Benson"
wrote:

Hi Ron, great formula!

I got the value 0.777778 in the sum....just wanted the OP to know he might
need to reformat the result cell as time.

Bill


Thanks for adding that.
\
And the format he should probably use would be [h]:mm in order to get hours
over 24.


--ron
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Time (hours and minutes)


Thanks Ron for further claifying the format. I was about to ask you ho
to get the result for over 24 hours.

Great man........Thanks

Take car

--
bengalur
-----------------------------------------------------------------------
bengaluru's Profile: http://www.excelforum.com/member.php...fo&userid=2418
View this thread: http://www.excelforum.com/showthread.php?threadid=38442



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Adding Time (hours and minutes)

On Thu, 7 Jul 2005 07:07:12 -0500, bengaluru
wrote:


Thanks Ron for further claifying the format. I was about to ask you how
to get the result for over 24 hours.

Great man........Thanks

Take care


I'm glad it's working for you.

Thanks for the feedback.


--ron
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding Time (hours and minutes)


Thanks a lot guys. Yes it does work.

Your help is much appreciated.


--
bengaluru
------------------------------------------------------------------------
bengaluru's Profile: http://www.excelforum.com/member.php...o&userid=24188
View this thread: http://www.excelforum.com/showthread...hreadid=384421

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 hours and minutes Phippsy Excel Discussion (Misc queries) 1 March 31st 10 05:41 PM
Adding Hours & Minutes Tina Excel Worksheet Functions 1 September 18th 09 05:48 PM
Adding minutes to hours/minutes Kathy Excel Discussion (Misc queries) 4 September 5th 08 09:56 PM
Adding hours and minutes Patrick Excel Worksheet Functions 16 June 18th 08 09:24 PM
Convert hours and minutes in time format into fractions of hours.. Akern Excel Worksheet Functions 4 April 21st 05 02:56 PM


All times are GMT +1. The time now is 11:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"