Time to Number conversion

MHau5

New Member
Joined
Oct 23, 2021
Messages
26
Office Version
  1. 2019
Platform
  1. Windows
In Excel I have a column with times (listed as 13:20, 15:35, etc). These numbers represent the amount of time a player played in a game, and it is saved as a Time format.

I am trying to get Excel to change it to (using the same numbers from above) 13.20, 15.35, and so forth.

However, I can't seem to find the proper way to do this. Whenever I try the substitute function and replace ":" with "." excel still remembers that the number is saved as a time.

Any thoughts on how to fix this short of doing it manually?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
In Excel I have a column with times (listed as 13:20, 15:35, etc). These numbers represent the amount of time a player played in a game, and it is saved as a Time format.

I am trying to get Excel to change it to (using the same numbers from above) 13.20, 15.35, and so forth.

However, I can't seem to find the proper way to do this. Whenever I try the substitute function and replace ":" with "." excel still remembers that the number is saved as a time.

Any thoughts on how to fix this short of doing it manually?
Also to clarify, if you click on the actual cells, Excel shows their true values as (hour:minute:second PM)
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=DOLLARFR(A2*24,60)
 
Upvote 0
Another way...

=0+TEXT(A1,"h\.mm")

But note that Excel will try to be "helpful" and format the result as a Custom Time... just change the cell format to General and you will see the value as a real decimal number.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Another way...

=0+TEXT(A1,"h\.mm")

But note that Excel will try to be "helpful" and format the result as a Custom Time... just change the cell format to General and you will see the value as a real decimal number.
Thanks Rick! How would you write the formula if the time was this?

3:59
4:43
4:26
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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