Date formatting

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
I am based in the US but am using a file that originates in the UK (I believe). As you will see from the table below they all appear to be dates but when a formula is used the data doesn't act like a date.

I have tried to used format cell function and change to a US format date, with no luck.

Has anyone else seen this before is there a way to correct this issue?

[TABLE="width: 500"]
<tbody>[TR]
[TD]DATE[/TD]
[TD]Month[/TD]
[TD]Formula Used in Column B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 205"]
<tbody>[TR]
[TD="class: xl63, width: 205"]17/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 89"]
<tbody>[TR]
[TD="class: xl65, width: 89"]17/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=TEXT(b2
,"mmmm")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 205"]
<tbody>[TR]
[TD="class: xl65, width: 205, align: right"]11/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 89"]
<tbody>[TR]
[TD="class: xl65, width: 89"]November[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=TEXT(b3
,"mmmm")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 205"]
<tbody>[TR]
[TD="class: xl65, width: 205"]31/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 89"]
<tbody>[TR]
[TD="class: xl65, width: 89"]31/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=TEXT(b4
,"mmmm")[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 205"]
<tbody>[TR]
[TD="class: xl65, width: 205, align: right"]03/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 89"]
<tbody>[TR]
[TD="class: xl65, width: 89"]March[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=TEXT(b5
,"mmmm")[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
That is because the ones it can convert are coming over as dates, and the others are coming over as text (the left-justified ones).
The following formula will work for either case, for an entry in cell A2:
Code:
=IF(ISNUMBER(A2),TEXT(A2,"mmmm"),TEXT(DATE(YEAR(TODAY()),MID(A2,4,2),1),"mmmm"))
 
Upvote 0
That is because the ones it can convert are coming over as dates, and the others are coming over as text (the left-justified ones).
The following formula will work for either case, for an entry in cell A2:
Code:
=IF(ISNUMBER(A2),TEXT(A2,"mmmm"),TEXT(DATE(YEAR(TODAY()),MID(A2,4,2),1),"mmmm"))

This formula allows we to change it to a month (text) which is helpful but I was looking to do is to change the exact date, so they should all be january.
 
Upvote 0
Sorry, your original post confused me. It looks like you were trying to pull the month from the formulas you posted.
The following formula will convert all entries to valid dates:
Code:
=IF(ISNUMBER(A2),A2,DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)))
Make sure to format the results in a Date format, or else you may see the numerical representation of the date.
 
Last edited:
Upvote 0
Sorry, your original post confused me. It looks like you were trying to pull the month from the formulas you posted.
The following formula will convert all entries to valid dates:
Code:
=IF(ISNUMBER(A2),A2,DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)))
Make sure to format the results in a Date format, or else you may see the numerical representation of the date.

Apologies for the confusion and thank you
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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