SOLUTION: Mixed up day/month order on data exports

Fysio

New Member
Joined
Jan 6, 2023
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

Took me a little while to figure this out, so I thought I'd share the solution.

Tangerine Bank exports transactions in CSV format, and the dates they include don't match the month/day order my computer is set for. This meant that none of the date information was correct; half auto-corrected to date format with mixed up months/days and the other half just remained a m/dd/yyyy format.

To resolve the issue, create a second column next to the erronious date column and paste this formula.
Adjust the references so they are all on the same line, then copy it all the way down.

Excel Formula:
=IF(ISNUMBER(A2),DATE(YEAR(A2),DAY(A2),MONTH(A2)),DATE(2022,LEFT(A2,(FIND("/",A2,1)-1)), SUBSTITUTE(MID(SUBSTITUTE("/" & A2&REPT(" ",6),"/",REPT(",",255)),2*255,255),",","")))

Cheers =]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi & welcome to MrExcel.
Another option would be to use the Text To Columns feature on the data tab & select delimited, Next, clear all checkboxes, next & then select the date format the csv is in, Finish
 
Upvote 0
Thanks Fluff,
That would work if Excel didn't force an auto-format. I had to resort to the formula above due to it doing that.

For example, this is first thing I see when opening the CSV export from Tangerine:
DateTransactionName
12-10-2022​
FEEInterac Network Usage Charge
12-11-2022​
OTHERWithdrawal to Tangerine Chequing
12-12-2022​
OTHEREFT Deposit from CANADA
12/13/2022ATMWithdrawal - Scotiabank ABM
12/13/2022CREDITInternet Deposit from Tangerine
12/13/2022CREDITInternet Deposit from Tangerine
12/13/2022OTHERINTERAC e-Transfer To: IslandQue

This is what it looks like formatted to "Long Date":
DateTransactionName
October 12, 2022​
FEEInterac Network Usage Charge
November 12, 2022​
OTHERWithdrawal to Tangerine Chequing
December 12, 2022​
OTHEREFT Deposit from CANADA
12/13/2022ATMWithdrawal - Scotiabank ABM
12/13/2022CREDITInternet Deposit from Tangerine
12/13/2022CREDITInternet Deposit from Tangerine
This shows that some of the numbers were seen as dates, though the month and day were swapped. These SHOULD be Dec 10 to Dec 13.
 
Upvote 0
Text to columns should still work as long as you select MDY as the date format.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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