Converting US date format to UK format

Swaroon

Active Member
Joined
Nov 18, 2005
Messages
288
Office Version
  1. 365
Hi,

I have a report which shows the date in US format eg. 10-28-2007

I want to convert it to UK format 28-Oct-07 but it isn't being recognised as a date but a text.

I can use Mid(4,2)&"-"&Left(2)&"-"&Right(4) to get 28-10-2007 but it still doesn't recognise it as a date so can't be formatted as 28-Oct-07.

Any ideas,

thanks
Steve
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try selecting the column, choosing Data|Text to Columns and selecting Date MDY at Step 3 of the wizard.
 
Upvote 0
Thanks, I tried this and nothing happened, it still kept the US format.
 
Upvote 0
I just tried it with the text entry 10-28-2007 in A1 and got 39383 or 28/10/2007 in dd/mm/yyyy format? Are your entries text or numbers? You can check with the ISNUMBER function.
 
Upvote 0
I would have thought TextToColumns would work, but a formula you could use would be (basically same as yours, with addition of plus 0 on the end):

Excel Workbook
AB
110-28-200728 October 2007
Sheet1
 
Upvote 0
Interesting, I can access excel on both a UK and a US server, when I try the UK server, I get false to the ISNUMBER and the text to col didnt work, when I tried the US server, it all worked.
When I copied from the US to UK server, the formatting came across fine.
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
Members
449,114
Latest member
aides

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