Suming or averaging time column

HomePro

Board Regular
Joined
Aug 3, 2021
Messages
157
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
  8. 2007
  9. 2003 or older
  10. Prefer Not To Say
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
So I have a program that gives me a CSV that I can not seem to get totals or averages on the column marked duration.
Any idea what is happening?
zoomus_call_log_2022-07-19.csv
GHIJ
1TimeResultPathDuration (hh:mm:ss)
27/18/2022 16:20Call ConnectedExtension0:02:37
37/18/2022 15:51Call ConnectedExtension0:03:30
47/18/2022 12:56Call ConnectedExtension0:00:25
57/18/2022 12:41Call ConnectedExtension0:02:40
67/18/2022 11:16Call ConnectedExtension0:01:43
77/18/2022 10:23Call ConnectedExtension0:00:41
87/18/2022 10:18Call ConnectedExtension0:02:15
97/18/2022 10:03Call ConnectedExtension0:07:27
107/18/2022 9:28Call ConnectedExtension0:04:26
117/18/2022 9:19Call ConnectedExtension0:16:46
mia
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
comes across as a time value - which is a decimal value , below 1 and then TIME formats to time display

what is it you are trying to average or total ?

you may need a format [H]:mm - if time goes over 24hrs

it maybe its comming into your file as text

change the format to general and see if you get a decimal number

Book2
ABCDEF
1TimeResultPathDuration (hh:mm:ss)
27/18/22 16:20Call ConnectedExtension00:02:37
37/18/22 15:51Call ConnectedExtension00:03:30
47/18/22 12:56Call ConnectedExtension00:00:25
57/18/22 12:41Call ConnectedExtension00:02:40
67/18/22 11:16Call ConnectedExtension00:01:43
77/18/22 10:23Call ConnectedExtension00:00:41
87/18/22 10:18Call ConnectedExtension00:02:15
97/18/22 10:03Call ConnectedExtension00:07:27
107/18/22 9:28Call ConnectedExtension00:04:26SUMAverage
117/18/22 9:19Call ConnectedExtension00:16:4600:42:3000:04:15
Sheet1
Cell Formulas
RangeFormula
E11E11=SUM(D2:D11)
F11F11=AVERAGE(D2:D11)
 
Upvote 0
An alternative means is Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Time", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Time"}, {{"Sum", each List.Sum([#"Duration (hh:mm:ss)"]), type number}, {"Average", each List.Average([#"Duration (hh:mm:ss)"]), type number}})
in
    #"Grouped Rows"
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top