How to convert a time stamp to a number

kpinto

New Member
Joined
Jun 20, 2018
Messages
4
Data I downloaded as a csv file has the information in a time stamp format

ON-DUTYDRIVINGTOTAL
2:489:4012:28


<colgroup><col width="64" style="width: 48pt;" span="3">
<tbody>










</tbody>
How do I covert this data to a number?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I am not 100% sure by your question.

If you want to convert time into number, multiply it by 24 and format it as general number. If you do, for example, 2.48 will become 2.80 as 48 minutes in term of general number is equal to .8 (48 minutes / 60 minutes).

Kind regards

Saba
 
Upvote 0
You could multiply each one by 24. For example;

Code:
=A2*24
or
Code:
=HOUR(A2)+MINUTE(A2)/60+SECOND(A2)/3600

Both would give you the same answer. Additionally, make sure you format the formulas cell as General.
 
Upvote 0
I am not 100% sure by your question.

If you want to convert time into number, multiply it by 24 and format it as general number. If you do, for example, 2.48 will become 2.80 as 48 minutes in term of general number is equal to .8 (48 minutes / 60 minutes).

Kind regards

Saba

Thank you very much
 
Upvote 0
A quick question

The data is reported as a time stamp . If I use this formula I get the result with a conversion considering the time. What I'm looking for is just to convert the time stamp field to a full number. Thanks
 
Upvote 0
You mean that you want to round up the number.

For example, what would be the output for times stamp 2:48 if you convert it to 'full number' as you are looking to do?

If you give the output that you are looking for, we can put a formula to do it.

Kind regards

Saba
 
Upvote 0
Sorry for not providing clarity

What I see in the excel cell is 2:48:00 PM

What I want is to convert this to a full number 2.48

Thanks
Keith


You mean that you want to round up the number.

For example, what would be the output for times stamp 2:48 if you convert it to 'full number' as you are looking to do?

If you give the output that you are looking for, we can put a formula to do it.

Kind regards

Saba
 
Upvote 0
Hi Keith,

Copy your data to A1:C1 to understand the formula

Enter the following formula in A2 and copy it across to C2

=HOUR(A1)+MINUTE(A1)/100

Kind regards

Saba
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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