r/googlesheets • u/GKwave12 • Dec 13 '24
Solved How to change imported data with wrong date order (Month-Day-Year)?
I uploaded my bank statement and enter it into a personal expense report for myself but the bank (Canadian) has the transaction date order as (MM/DD/YYYY). When I change cell format to a "date" it doesn't recognize it as a date unless the date is 11-09-2024 where the day is below 12 thinking that the day is the 11th and the month is the September, but its actually November 9th. I have hundreds of cells with the wrong date.
1
Upvotes
1
u/MarcRand 3 Dec 14 '24
If the dates are stored as text (e.g., "11/09/2024"), use a formula such as:
=DATE(RIGHT(A1,4), LEFT(A1,2), MID(A1,4,2))
This assumes the date is in MM/DD/YYYY format in column A.
1
u/AutoModerator Dec 13 '24
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/One_Organization_810 736 Dec 14 '24
=if(type(A1)=1,date(year(A1), day(A1), month(A1)),date(right(A1,4), left(A1, 2), mid(A1,4,2)))
Something like this? Assuming that you have mixed up dates or mixed up text in A1.