Converting time to a decimal

richardthelionheart

Board Regular
Joined
Mar 25, 2016
Messages
95
Office Version
  1. 2016
Platform
  1. Windows

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
[TD="class: xl63, width: 64, align: right"]12:01[/TD]

[TD="class: xl63, align: right"]12:16[/TD]

[TD="class: xl63, align: right"]12:31[/TD]

[TD="class: xl63, align: right"]12:46[/TD]

[TD="class: xl63, align: right"]13:01[/TD]

[TD="class: xl63, align: right"]13:16[/TD]

[TD="class: xl63, align: right"]13:31[/TD]

[TD="class: xl63, align: right"]13:46[/TD]

[TD="class: xl63, align: right"]14:01[/TD]

[TD="class: xl63, align: right"]14:16[/TD]

[TD="class: xl63, align: right"]14:31[/TD]

[TD="class: xl63, align: right"]14:49[/TD]

</tbody>


I've got 2 sets of data. One comes to me in usual time format (above) and one comes to me as a decimal. eg

18.22
18.32
12.04
12.58

Is it possible to somehow convert the time format to a decimal format so that I can sort them using row sort ?

Any help greatly appreciated.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Supposing your time is hours and minutes,enter 24 in an empty cell and copy it
Select your range with duration - Right click - Paste special - Multiply - OK - Format as required
If the time is minutes and seconds same thing but using 1440 instead of 24
 
Upvote 0
Changing the format form hh:mm to hh.mm does not make any difference when sorting, as Excel sorts the underlying values ( which are fractions of a day)

Is there any chance your time is text looking like time manually right aligned in the cell) rather than real time ?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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