Date format Reordering

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
793
Office Version
  1. 365
Platform
  1. MacOS
[FONT=&quot]Hi. Please see link to the relevant file, below:[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]https://1drv.ms/x/s!AtIvkRgReIvwgRPV4fmLEL1-gjz-[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]I have a problem that I can’t seem to solve. I have this list of times and positions, with the times in hh:mm:ss format. However, the times have the minutes and and seconds in the wrong positions. e.g. Cell B2 shows 17:08:00 (17 hours, 8 minutes and 0 seconds), but this is meant read 00:17:08 (o hours, 17 minutes and 8 seconds)[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]Other than re-typing them manually into the correct positions, is there a quick way to rearrange their order correctly?[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]Thanks, Olly.[/FONT]
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Re: Date format Rerdering

Will this resolve it if filled down the C column? I think there will be an issue when you have a value in column B showing 24 as the hours because that will show up as the 0-hour.
Possibly an IF statement within the TIME function, but I haven't tried it yet.

Code:
=TIME(0,HOUR(B2),MINUTE(B2))
 
Last edited:
Upvote 0
Thank you so much, this worked a treat! Can't believe I didn't think of that - so simple! :laugh:
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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