Date Formatting

Bedford

Active Member
Joined
Feb 3, 2015
Messages
328
Office Version
  1. 365
Platform
  1. MacOS
When downloading .csv files with a date range in a column separated as; 28/01/2018 I can't seem to change the date format to look as; January 28, 2018. I've tried copying and pasting as values, some text to column options but there doesn't seem to be an easy fix?
Any suggestions?
 
I tried the modified array, excel is giving me an error, "The formula you typed contains an error."
I can confirm the date format of the Mac OS is mm/dd/yyyy

Try this small modification in the array formula:

1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000")))),
MAX(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))-
MIN(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))+1)

Ps: verify if your date configuration in your Mac OS (not in Excel) is mm/dd/yyyy.

[TABLE="class: grid, width: 412"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Date Like Txt or Other[/TD]
[TD]DateLikeNumber[/TD]
[TD]DateLikeDate[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]09/21/2018[/TD]
[TD="align: right"]43364[/TD]
[TD="align: right"]09/21/2018[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]10/01/2018[/TD]
[TD="align: right"]43374[/TD]
[TD="align: right"]10/01/2018[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]11/01/2018[/TD]
[TD="align: right"]43405[/TD]
[TD="align: right"]11/01/2018[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]12/31/2018[/TD]
[TD="align: right"]43465[/TD]
[TD="align: right"]12/31/2018[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]09/02/2018[/TD]
[TD="align: right"]43345[/TD]
[TD="align: right"]09/02/2018[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]12/27/2018[/TD]
[TD="align: right"]43461[/TD]
[TD="align: right"]12/27/2018[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD]11/02/2018[/TD]
[TD="align: right"]43406[/TD]
[TD="align: right"]11/02/2018[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD]12/02/2018[/TD]
[TD="align: right"]43436[/TD]
[TD="align: right"]12/02/2018[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD]09/03/2018[/TD]
[TD="align: right"]43346[/TD]
[TD="align: right"]09/03/2018[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD]10/03/2018[/TD]
[TD="align: right"]43376[/TD]
[TD="align: right"]10/03/2018[/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[TD]11/03/2018[/TD]
[TD="align: right"]43407[/TD]
[TD="align: right"]11/03/2018[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD]12/23/2018[/TD]
[TD="align: right"]43457[/TD]
[TD="align: right"]12/23/2018[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD]09/04/2018[/TD]
[TD="align: right"]43347[/TD]
[TD="align: right"]09/04/2018[/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD]10/04/2018[/TD]
[TD="align: right"]43377[/TD]
[TD="align: right"]10/04/2018[/TD]
[/TR]
[TR]
[TD="align: right"]16[/TD]
[TD]11/14/2018[/TD]
[TD="align: right"]43418[/TD]
[TD="align: right"]11/14/2018[/TD]
[/TR]
[TR]
[TD="align: right"]17[/TD]
[TD]12/04/2018[/TD]
[TD="align: right"]43438[/TD]
[TD="align: right"]12/04/2018[/TD]
[/TR]
[TR]
[TD]****[/TD]
[TD]*********************[/TD]
[TD]****************[/TD]
[TD]*************[/TD]
[/TR]
</tbody>[/TABLE]


Markmzz
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
my post #7 is wrong

try

[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]01/28/2018[/TD]
[TD]
January 28,2018​
[/TD]
[/TR]
</tbody>[/TABLE]


b1=TEXT(SUBSTITUTE(A1,"/","")+0,"00-00-0000")+0 custom format for b1 mmmm dd,yyyy
 
Last edited:
Upvote 0
Strangely I get a #VALUE ! error when using this formula?


my post #7 is wrong

try

[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]01/28/2018[/TD]
[TD]
January 28,2018​
[/TD]
[/TR]
</tbody>[/TABLE]


b1=TEXT(SUBSTITUTE(A1,"/","")+0,"00-00-0000")+0 custom format for b1 mmmm dd,yyyy
 
Upvote 0
I tried the modified array, excel is giving me an error, "The formula you typed contains an error."
I can confirm the date format of the Mac OS is mm/dd/yyyy

Sorry, my mistake, try this:

=1*MID(A2,
MIN(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000")))),
MAX(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))-
MIN(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))+1)

Markmzz
 
Last edited:
Upvote 0
I accounted for the missing "=" and inserted it myself, but there still seems to be a problem with the formula, excel is telling; "The formula you typed contains an error."


Sorry, my mistake (I forgot the = in my formula), try this:

=1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000")))),
MAX(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))-
MIN(IF(ISNUMBER(1*MID(A2,ROW(INDIRECT("1:1000")),1)),ROW(INDIRECT("1:1000"))))+1)

Markmzz
 
Upvote 0
I accounted for the missing "=" and inserted it myself, but there still seems to be a problem with the formula, excel is telling; "The formula you typed contains an error."

Look at the formula again (Isn't only the =).

Markmzz
 
Last edited:
Upvote 0
Ok, that was strange, clicked on the link and went to sign on as new user, this is the message that popped up; [h=1]Your connection is not private[/h]Attackers might be trying to steal your information from filedropper.com (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_DATE_INVALID



 
Upvote 0
This will get the date value of the text string:

=DATE(VALUE(RIGHT(A1,4)),VALUE(LEFT(A1,2)),VALUE(MID(A1,4,2)))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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