• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

DATE FORMATING

cherez

New Member
Hello Forum, Please help.

I imported a large excel data with date format as yy-mmm (eg, 21-Sep). However, Excel is seeing this as 9/21/2022.

How can I format this date so it reflects the data sets I am working with (September 2021) .

Thank you
 
cherez
How did You import?
Could You choose then needed format?
Is Your imported date real date or text?
Could You attach a sample of Your original raw data as well as a sample Excel-file which has some data?
 
cherez
How did You import?
Could You choose then needed format?
Is Your imported date real date or text?
Could You attach a sample of Your original raw data as well as a sample Excel-file which has some data?

Hello, Thank you for responding.
I imported as csv
It's a real date
Sample attached
 

Attachments

  • Sample data for date format.csv
    60 bytes · Views: 4
This is what I see in your example :
Month,,,
Last 30 Days,,,
21-Sep,,,
21-Aug,,,
21-Jul,,,

Is this correct? That is, of course, text
 
This is what I see in your example :
Month,,,
Last 30 Days,,,
21-Sep,,,
21-Aug,,,
21-Jul,,,

Is this correct? That is, of course, text

yes. Correct. That's from the raw file. Even when I Converted to date on a new work sheet. I Couldn't figure out how to fix the date to reflect as Sept 2021. rather excel see's it as 21 Sept 2022.
 
Not sure If I am missing something here. The result didn't come out as expected. See attached.

The year I want is September 2021.
 

Attachments

  • Sample data result.csv
    31 bytes · Views: 3
You could try importing using the Text Import Wizard, where in Step 3 you get:
78271

then when you click Finish, you get:
78272
where a proper Excel date has gone into the cell (always the 1st of the month) and cell formatted as mmm-yy without you needing to do it.

The only problem is getting to the Text Import Wizard, and that depends on your version of Excel… which is?
 
Here we go.

Size of what to attach has to very light
 

Attachments

  • Sample data result 2.xlsx
    10 KB · Views: 1
  • Sample data result 2.csv
    22 bytes · Views: 1
You could try importing using the Text Import Wizard, where in Step 3 you get:
View attachment 78271

then when you click Finish, you get:
View attachment 78272
where a proper Excel date has gone into the cell (always the 1st of the month) and cell formatted as mmm-yy without you needing to do it.

The only problem is getting to the Text Import Wizard, and that depends on your version of Excel… which is?

My Excel Version is 2203. Excel 365

If you don't mind walking me how you were able to format the year as 2021. I used the text wizard but date still appears as 2022.
remember, original source file is "21-Sep" which means Sep 2021 for the data data. But my excel/csv sees "21-Sep" as 2022-09-21
 
If you don't mind walking me how you were able to format the year as 2021. I used the text wizard but date still appears as 2022.
Select your range - Data - text to columns - Next - Next - Click "Date" in the Column date format and select YMD - Finish
(like the pictures p45cal provided)
 
Even when I Converted to date on a new work sheet
This doe not work. Formatting is the way XL shows things to the outside world. Real dates are actually numbers in the background.(1 is 01/01/1900,2 is 02/01/1900, etc..)( Non US formats)
When you have text, it stays text, whatever the formatting
 
Back
Top