Date format Reordering

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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! :LOL:
 
Upvote 0

Forum statistics

Threads
1,214,428
Messages
6,119,420
Members
448,895
Latest member
omarahmed1

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