Date Formatting

Bedford

Active Member
Joined
Feb 3, 2015
Messages
316
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.

ABC
1Date Like Txt or OtherDateLikeNumberDateLikeDate
209/21/20184336409/21/2018
310/01/20184337410/01/2018
411/01/20184340511/01/2018
512/31/20184346512/31/2018
609/02/20184334509/02/2018
712/27/20184346112/27/2018
811/02/20184340611/02/2018
912/02/20184343612/02/2018
1009/03/20184334609/03/2018
1110/03/20184337610/03/2018
1211/03/20184340711/03/2018
1312/23/20184345712/23/2018
1409/04/20184334709/04/2018
1510/04/20184337710/04/2018
1611/14/20184341811/14/2018
1712/04/20184343812/04/2018
******************************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
my post #7 is wrong

try

A
B
1
01/28/2018
January 28,2018​

<tbody>
</tbody>


b1=TEXT(SUBSTITUTE(A1,"/","")+0,"00-00-0000")+0 custom format for b1 mmmm dd,yyyy
 
Last edited:
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,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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