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?

DATEMonthFormula Used in Column B
17/01/2018

<tbody>
</tbody>
17/01/2018

<tbody>
</tbody>
=TEXT(b2
,"mmmm")
11/01/2018

<tbody>
</tbody>
November

<tbody>
</tbody>
=TEXT(b3
,"mmmm")
31/01/2018

<tbody>
</tbody>
31/01/2018

<tbody>
</tbody>
=TEXT(b4
,"mmmm")
03/01/2018

<tbody>
</tbody>
March

<tbody>
</tbody>
=TEXT(b5
,"mmmm")

<tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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