Adding a range of hours and minutes

kets23

New Member
Joined
Feb 29, 2016
Messages
26
Hi

I have a large data sheet showing various hours and minutes along with other data , I have summarised via a pivot table but have noticed that the hours and minutes are not being calculated correctly.
For example, from the pivot table:

- The total hours and minutes on the attached for CC units under Year 1 shows as 1497 when the correct hours/minutes should be 148 hours and 20 minutes
- The total hours and minutes on the attached for NC units under Year 1 shows as 1835.60 when the correct hours/minutes should be 1836.50

Also from the pivot table,, under NC units for Year 2, this shows as 1167.90 when this should be 1168 hours

Data for all the hours is from the confirmed hours column, I need to obtain similar data for Unconfirmed hours and total hours

Any ideas on how I can get an accurate analysis of all the units total hours and minutes in the correct format for year 1 & year 2 that I can then analyse by host and type.

Also when I try to sum up the hours total in HHMM column, this is not showing me totals when I select a certain range

Thanks in advance

Kets
 

Attachments

  • Test image.jpg
    Test image.jpg
    124 KB · Views: 6

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Using hhh.mm to express time is unconventional and you can't do arithmetic with it (all of the columns except "Hours Total in HHMM"). For your example for CC Year 1, the sum of those numbers is 1497.2 (not 1498.2). And that's not 1497 hours and 20 minutes, its 1497.2 hours (1497 hours and 12 minutes). Your display format probably does not show decimal points so 1497 is correct. You did not show us data for NC so I can't check that one.

Also when I try to sum up the hours total in HHMM column, this is not showing me totals when I select a certain range
I'm not clear on what you mean by that. What is not showing you totals? Do you mean in the status bar? It should work if the data is numeric. Is that column time values, or is it something formatted as a text string?

What you perceive as a problem is most likely in how you think the data should work vs. how it really works. So it is essential to see your actual data.

Unfortunately we can't tell anything by looking at a picture. Can you paste in the actual data? Consider using the XL2BB add-in. Better yet provide a link to the file from a cloud file service (Dropbox, Google Docs, OneDrive, etc.)
 
Upvote 0
Hi

Data pasted

Sum of Confirmed HoursYead
TrustYEAR 1YEAR 2(blank)Grand Total
CC Units1497987.82484.8
DD units6401324.31964.3
GG Units348.45348.45
NA Units751.75751.75
NC Units1835.61167.93003.5
NH Units5474.35260.5510734.85
NU Units35705.2536749.3572454.6
SF Units8640.66472.8615113.46
UHDB Units14014.735500.1519514.88
(blank)
Grand Total67807.4858563.11126370.59
 
Upvote 0
Hi

Data pasted

Sum of Confirmed HoursYead
TrustYEAR 1YEAR 2(blank)Grand Total
CC Units1497987.82484.8
DD units6401324.31964.3
GG Units348.45348.45
NA Units751.75751.75
NC Units1835.61167.93003.5
NH Units5474.35260.5510734.85
NU Units35705.2536749.3572454.6
SF Units8640.66472.8615113.46
UHDB Units14014.735500.1519514.88
(blank)
Grand Total67807.4858563.11126370.59
 
Upvote 0
UnitsHostTypeYearConfirmed HoursUnconfirmed HoursTotal (confirmed - unconfirmed)Hours Total in HHMM
CC UnitsAea 1MWYEAR 10.000.000.000:00
CC UnitsAea 1MWYEAR 10.000.000.000:00
CC UnitsAea 1MWYEAR 10.000.000.000:00
CC UnitsAea 1MWYEAR 10.000.000.000:00
CC UnitsAea 1MWYEAR 10.000.000.000:00
CC UnitsArea 2MWYEAR 1137.300.00137.30137:30
CC UnitsArea 2MWYEAR 1112.300.00112.30112:30
CC UnitsArea 2MWYEAR 173.000.0073.0073:00
CC UnitsArea 3MWYEAR 1106.500.00106.50106:50
CC UnitsArea 3MWYEAR 199.000.0099.0099:00
CC UnitsArea 3MWYEAR 1108.000.00108.00108:00
CC UnitsArea 4MWYEAR 1123.150.00123.15123:15
CC UnitsArea 4MWYEAR 1123.150.00123.15123:15
CC UnitsArea 4MWYEAR 1112.300.00112.30112:30
CC UnitsArea 4MWYEAR 1112.300.00112.30112:30
CC UnitsArea 4MWYEAR 1195.000.00195.00195:00
CC UnitsArea 4MWYEAR 1195.000.00195.00195:00
 
Upvote 0
Just to clarify, the issue is with the hours and minutes as shown in the data below, year 2 is an example of data showing 1773.9 and 3600.9 when this is not correct as the minutes should be showing within 60 minutes

YEAR 1YEAR 2Grand Total
187.3187.3
2109.31773.93883.2
348.45348.45
109109
18763600.95476.9
5055.42949.858005.25
 
Upvote 0
I am not following what you're doing. If 1773.9 is in units of hours, then it's 1773 hours and 54 minutes. I do not understand what you mean by "the minutes should be showing within 60 minutes". And the column Total has decimal hours, and the column Hours Total has the same digits in a different format, which doesn't make sense.

Which cells have data, and which cells have formulas? For cells with formulas, what are the formulas?
 
Upvote 0
Yes 1773.9 is in units of hours but need the pivot table to show this as 1773 hours and 54 minutes (this is what I meant in my previous message), this is what I need to display for all others in the unit of hours.

Thanks
 
Upvote 0
If you have a value like 17743.9 that is in units of hours in, for example, A1, then you need another column to convert it to a time value:
Excel Formula:
=A1/24
Then you can display the data from the new column in the pivot table as h:mm.

It seems like maybe that is what you are trying to do in your last two columns but I can't figure out based on what I've seen so far.
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

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