Converting Mixed Dates to Time Values for Formulas

jaypop18

New Member
Joined
Jan 27, 2020
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
I get a report from our ERP that generates the number of time spent on a given task and the format comes in as ddd.hh:mm (ex. 001.04:35). I would like to be able to convert this data to a value that I can use to sum all the data in the column together to find total time for a given task range. In addition to the funky formatting that the report comes with, the other issue is that 1 day of time is actually 8.5 hours, not 24 hours of time.

I tried using formulas to isolate the individual numbers (ex. 001, 04, 35) but I'm getting results that are odd. For example, if I use the formula =(LEFT(P407,3)*8.5) where P407=001.05:15 the forumla returns a value of 8.5. Great, that's what I need. But then if I try to format that cell as an [h]:mm I get 204:00. And I know that 1 day of time is 8.5 hours so my result should be 8:30? I thought if I converted the days portion of the data to hours:minutes then I could add it to the hours:minutes that are remaining in the cell to get total time and then use a simple SUM formula to give me total time.

This is a report I need to run every week so I need a simple solution to convert this time data into a value that I can use for basic statistical formulas.

Thanks in advance!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Brilliant! That worked. Still a little tedious because now I have to add a second column to convert the data into [hh]:mm with this formula =((LEFT(P17,3)*8.5)/24)+(MID(P17,5,5)), fill that down the range and then SUM it at the end. I guess I need to test my hand at a macro to do this for me whenever I open this spreadsheet.

Thanks for the help!
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,745
Members
449,116
Latest member
alexlomt

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