Converting time to a decimal

richardthelionheart

Board Regular
Joined
Mar 25, 2016
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
12:01
12:16
12:31
12:46
13:01
13:16
13:31
13:46
14:01
14:16
14:31
14:49

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</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 you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,214,561
Messages
6,120,234
Members
448,951
Latest member
jennlynn

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