#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default summing time

Hi
I have 3 columns of data
A = day of the week
B = Fault that occurred
C = Time

ie
A B C
Mon Snapped 0:1:00
Mon Snapped 0:1:00
Tue Snapped 0:1:00

What i want to do is

Sum the time for each fault depend on the day

Result is
Mon Snapped 0:2:00
Tue Snapped 0:1:00


i was thinking of sumif or sumproduct
What is the best way of doing this please

Thanks
kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default summing time

Heres one way... choose a section where you want the results.

Create a column of the days like

Mon
Tue
Wed
etc

Then in the cell next to Monday put the formula
=SUMIF($A$1:$A$3,E1,$C$1:$C$3)

Remember this is assuming that the word "Mon" is in cell E1. Make sure you
leave the $ signs in the code except for on the E1 part. Then copy this code
and paste it down throughout the days of the week. Adjust it to fit your data.

Hope this helps


"kevcar40" wrote:

Hi
I have 3 columns of data
A = day of the week
B = Fault that occurred
C = Time

ie
A B C
Mon Snapped 0:1:00
Mon Snapped 0:1:00
Tue Snapped 0:1:00

What i want to do is

Sum the time for each fault depend on the day

Result is
Mon Snapped 0:2:00
Tue Snapped 0:1:00


i was thinking of sumif or sumproduct
What is the best way of doing this please

Thanks
kevin

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default summing time

Hi

Use a Pivot Table
Insert a header row with Day, Reason and Time in A1:C1
Place cursor in A1DataPivot TableFinish
On the new sheet that is created, in the PT skeleton
Drag Day to the Column area
Drag Reason to the row area
Drag Time to the data area
Double click on TimeSelect Sum Click Numberchange format to Custom[h]:mm

--
Regards
Roger Govier

"kevcar40" wrote in message
...
Hi
I have 3 columns of data
A = day of the week
B = Fault that occurred
C = Time

ie
A B C
Mon Snapped 0:1:00
Mon Snapped 0:1:00
Tue Snapped 0:1:00

What i want to do is

Sum the time for each fault depend on the day

Result is
Mon Snapped 0:2:00
Tue Snapped 0:1:00


i was thinking of sumif or sumproduct
What is the best way of doing this please

Thanks
kevin


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
Need help summing time ascottbag-hcm Excel Worksheet Functions 6 September 17th 08 11:17 PM
summing of time Andrew@rushington[_2_] Excel Worksheet Functions 3 November 30th 07 07:59 AM
Summing up time egamalaki Excel Worksheet Functions 3 May 30th 05 02:13 PM
Summing Time JDT Excel Discussion (Misc queries) 8 February 8th 05 10:53 PM
Summing Time Pete Excel Discussion (Misc queries) 3 February 8th 05 12:52 PM


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

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"