Conversion of time stored as numbers to actual time.

SINNARKAR

New Member
Joined
Apr 14, 2014
Messages
9
Recently, after lockdown, our Administration has started noting the In and Out time as 8.17 and 17.30. They have recorded the timings for about 100 employees for a week and when they tried to get number of hours, it was impossible for them to get the exact number of hours worked. Then I used the technique to convert those numbers to time by using copy and paste in word and find and replace "." with ":" and paste back to excel.
This is the out of way conversion of number to time. But is there any way for doing such conversion? Please guide me.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Select the cells with the time, then Ctrl H to bring up the search/replace dialogue box, Put . in the Find what box & : in the replace with box, then Replace all.
 
Upvote 0
The way in which I have done is Taken the timings i.e. 8.17 copied in word and then replaced . with : and pasted back to Excel. This is the fastest alternative I found.
 
Upvote 0
format to your preference
T202101a.xlsm
AB
28.178:17 AM
317.35:03 PM
4b
Cell Formulas
RangeFormula
B2:B3B2=TIME(LEFT(A2,FIND(".",A2)-1),MID(A2,FIND(".",A2)+1,99),0)
 
Upvote 0
You can ignore the above post.
I posted it in case you wanted to use the Time function.
Excel's find and replace as suggested is the solution that I would use.
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,375
Members
448,888
Latest member
Arle8907

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