Avatar of gregfthompson
gregfthompson
Flag for Australia asked on

Date format problem

The attached file contains dates. Some will format. Some will not.
I'd like to be able to format them all.
Date-problem-example.xlsx
Microsoft Excel

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
Naresh Patel

Try this in column B
=TEXT(A9,"DD/MM/YYYY")

Open in new window

gregfthompson

ASKER
Thanks.

This allows all cells to be formatted in the same way.
But it still will not allow the date format function to work to change the format.
I am seeking to be able to change the format through the date format function.
Wayne Taylor (webtubbs)

They are likely entered as Text format. To change to something that can be identified as a date, enter '1' in a blank cell. Copy that cell, select the date cells and Paste Special, with Multiply as the operation.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
Subodh Tiwari (Neeraj)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Roy Cox

Copy a blank cell.

Select all the dataes then PasteSpecial. Scroll don and select PasteSpecial then Add
Arana (G.P.)

you are having problem because of regional settings, in the sheet you gave us, what is the correct date for a16? is it dec 10 or oct 12?
 
if it is OCt 12 then use this in the next cell (b16) to convert it
=IFERROR(DATEVALUE(TEXT(A16,"MM/dd/YYYY")),DATEVALUE(MID(A16,4,2) & "-" & LEFT(A16,2)&"-"&RIGHT(A16,4)))
Naresh Patel

@arana,

i am not author but i tried and it works perfect.
=TEXT(IFERROR(DATEVALUE(TEXT(A2,"MM/dd/YYYY")),DATEVALUE(MID(A2,4,2) & "-" & LEFT(A2,2)&"-"&RIGHT(A2,4))),"DD-MMM-YY")

Open in new window


Good Comment
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
gregfthompson

ASKER
Thanks - works perfectly, and is simple.
Subodh Tiwari (Neeraj)

You're welcome. Glad I could help.