formatting

ads_1471

Board Regular
Joined
Apr 19, 2016
Messages
58
I have converted time format from 08:30 to be 830,

However when trying to change the number format from custom to general it goes to 0.3542

How do I stop it going to 0.3542 and stay as 830 in general format
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You'd have to convert the actual cell value. 830 is not the same as 8:30 since Excel stores times as fractions of 1. Why do you need to do this?
 
Upvote 0
It is important to understand Excel stores dates and times.
Basically, it stores them as numbers, specifically, the number of days since 1/0/1900. And time is just the fraction of a day. The date/time is just a special formatting on this number.
So, 8:30 AM is really 8.5/24, which is equal to 0.3542 (which is why you are seeing that).

If you want to convert it to a number like "830", you can use the following formula (for a cell on cell A1):
Code:
=TEXT(A1,[h]mm")*1
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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