Date from CSV file not copying & pasting correctly. Day and Month are reversed.

HighAndWilder

Well-known Member
Joined
Nov 4, 2006
Messages
660
Office Version
  1. 365
Platform
  1. Windows
I am copying data from a CSV file and pasting it into a new worksheet.

One of the columns contains a date structured as DD/MM/YYYY.

When this data is pasted into the other worksheet the day and month are reversed where the day is less than 13.
These dates end up as MM/DD/YYYY.

What is the best way to transfer this data to ensure that the data is copied correctly?

Thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Your bigger problem is that ALL DATES IN YOUR FILE ARE WRONG:
Dates with a day less than 13 have been converted to a date with the wrong day in the wrong month
Dates with a "day" of 13 or more have been converted to text.
Do not open a CSV file directly. Open Excel first. Then click Data, Get Data, From File, From CSV. Point at the file and click Transform data. There you can tell Powerquery what the expected date order is when you are converting dates. Use the "Using Locale" option and set it to whatever locale has the same date order as the order in your CSV. See: Excel: Importing text files into Excel sheets
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,180
Members
452,615
Latest member
bogeys2birdies

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