unformated dates

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Unformated Dates

Unformated Dates

resolvedResolved · Low Priority · Version 2007

Emma has attended:
Excel Intermediate course

Unformated Dates

I have a list of dates that will not change into the correct english format what formulae is the best to sort this out. I know len, right, mid and left formulae are used.

RE: Unformated Dates

Hi Emma, thanks for your query.

Here's the formula we looked at in class which converts both 90210 and 100210 into date format. I've broken the syntax of the IF statement up to make it more readable here:

=IF(LEN(A1)=6,

(MID(A1, (LEN(A1)-5),2)) & "/" & (MID(A1, (LEN(A1)-3),2))& "/" & RIGHT(A1,2),

(MID(A1, (LEN(A1)-4),1)) & "/" & (MID(A1, (LEN(A1)-3),2))& "/" & RIGHT(A1,2))

I think you should be able to tease this apart, but let me know if you need any further help with this.

All the best,

Anthony


 

Excel tip:

Highlighting only Text cells

To select onlt text value cells in a spreadsheet, click on Edit-Go to(F5)


In the Go To dialog box, click Special.
In the Go To Special dialog box, select Constants.
Click OK.

View all Excel hints and tips


Server loaded in 0.08 secs.