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

unformated dates

ResolvedVersion 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:

Change the Value of a Constant

When using a named constant in a worksheet, you may wish to change the value of that constant.

From the 'Insert' menu, select 'Name', then select 'Define'.

In the 'Define Name' dialog box, select the constant that you want to change.
Change the value in the 'Refers To' box.
Click OK.

Wherever that named constant has been used it will now use its new value.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.