ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Errors & fixes
  3. Excel Swapping Day and Month? How to Fix Dates

Excel Swapping Day and Month? How to Fix Dates

By ExcelReady Team·Updated November 1, 2026·5 min read

The short answer

Excel swaps day and month when it reads dates written in a different order from your computer's regional settings, for example a day/month CSV opened on a month/day system. Changing the format won't fix it. Re-import with Text to Columns set to DMY, or rebuild each date with DATE, such as =DATE(YEAR(A2),DAY(A2),MONTH(A2)).

Key takeaways

  • Excel reads typed and imported dates in the order set by your computer's region, not the file's.
  • Changing the number format only changes the look; swapped dates stay wrong underneath.
  • Dates with a day above 12 can't be read as months, so they stay as left-aligned text.
  • Text to Columns with the DMY option converts text dates in the right order.
  • Type dates as 2024-03-15 or build them with DATE to avoid the problem.
On this page+
  1. Why Excel swaps the day and month
  2. How to spot swapped dates
  3. Why changing the date format doesn't fix it
  4. Fix 1: Text to Columns for text dates
  5. Fix 2: rebuild text dates with a formula
  6. Fix 3: swap dates that were converted the wrong way
  7. How to prevent swapped dates
  8. Why swapped dates break your formulas
  9. Practise it

If Excel has the day and month swapped, so 3 April shows up as 4 March, the cause is a clash between the date order in your data and your computer's regional settings. It usually happens with CSV files and data exported from other systems. This guide shows how to spot swapped dates, how to fix the ones Excel converted wrongly and the ones it left as text, and how to stop it happening again.

Why Excel swaps the day and month#

Excel reads dates in the order your computer's regional settings use. A computer set to the United States reads 03/04/2024 as month/day/year: 4 March. A computer set to the United Kingdom, India or Australia reads it as day/month/year: 3 April.

When the data was written in one order and your computer uses the other, Excel guesses wrong. It doesn't know where the file came from. This affects:

  • Opening a CSV file directly.
  • Pasting dates copied from a web page, email or another program.
  • Typing dates in the other order.

Dates you create with formulas such as DATE, or pick from a real date cell, are never affected.

How to spot swapped dates#

Swapped dates are tricky because many of them look like valid dates. Look for these signs in a column imported as day/month/year on a month/day computer:

Original textWhat Excel didHow it looks
03/04/2024 (3 April)Read as 4 MarchRight-aligned, wrong date
11/02/2024 (11 February)Read as 2 NovemberRight-aligned, wrong date
15/03/2024 (15 March)No month 15, so left as textLeft-aligned text
28/03/2024 (28 March)No month 28, so left as textLeft-aligned text

So a mix of left-aligned and right-aligned dates in one column is the classic sign. To check a cell, use =ISNUMBER(A2): TRUE means a real date, FALSE means text. =DAY(A2) and =MONTH(A2) show how Excel read a real date. The guide to YEAR, MONTH and DAY covers those functions.

Why changing the date format doesn't fix it#

Excel stores a date as a number and the format only controls how it looks. If Excel stored 4 March, a format of dd/mm/yyyy shows 04/03/2024 and mm/dd/yyyy shows 03/04/2024. Both still mean 4 March. Text dates don't change at all, because a format can't turn text into a date.

So you have to rebuild the dates. Which fix you need depends on whether the cells are text or wrongly converted dates.

Fix 1: Text to Columns for text dates#

Text to Columns re-reads text in the order you choose, so it's the quickest fix for a column of text dates. It's best done on the original data before any were converted.

  1. Select the column of dates.
  2. Go to Data > Text to Columns.
  3. Choose Delimited and click Next, then Next again.
  4. Under Column data format, choose Date and pick DMY (or the order your data uses).
  5. Click Finish.

Excel converts each text date using that order. This doesn't help dates that Excel already converted wrongly, because they're numbers now, not text. For those, use Fix 3.

Fix 2: rebuild text dates with a formula#

When the text always has the same layout, such as 15/03/2024, pull out the parts and give them to DATE in year, month, day order:

Excel formula
=DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))

RIGHT takes the last 4 characters (2024), MID takes 2 characters from position 4 (03), and LEFT takes the first 2 (15). The result is the real date 15 March 2024, which Excel stores as 45366. Format the cell as a date to see it.

This only works when every day and month has two digits. In Microsoft 365, TEXTSPLIT can split on the slash for layouts like 5/3/2024.

Fix 3: swap dates that were converted the wrong way#

If Excel turned 03/04/2024 into 4 March, the day and month are just in each other's place. Swap them back:

Excel formula
=DATE(YEAR(A2),DAY(A2),MONTH(A2))

DATE takes the year, then uses the old day as the month and the old month as the day. 4 March becomes 3 April.

For a mixed column, combine both fixes with IF:

Excel formula
=IF(ISNUMBER(A2),DATE(YEAR(A2),DAY(A2),MONTH(A2)),DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)))

Only use the swap on dates you know came from the other order. A date you typed correctly would be swapped into a wrong one. Once the helper column is right, copy it and paste as values over the original.

How to prevent swapped dates#

The best fix is to stop the swap happening:

  • Import instead of opening. Use Data > From Text/CSV, then Transform Data. Right-click the date column and choose Change Type > Using Locale, then pick Date and the locale the file uses, such as English (United Kingdom).
  • Type dates as year-month-day. Excel reads 2024-03-15 the same way on every computer.
  • Build dates with DATE. =DATE(2024,3,15) is never ambiguous. The guide to Excel date functions shows the others.
  • Show the month as a word. A format like dd-mmm-yyyy displays 15-Mar-2024, so a swap is obvious at a glance.

Why swapped dates break your formulas#

Swapped dates don't just look wrong. Every calculation built on them is wrong too. A delivery that took 5 days might appear to take 30, and month-end reports put orders in the wrong month.

DATEDIF shows it clearly. It needs the start date first and returns #NUM! if the start is after the end. Take an order dated 02/03/2024 (2 March) and delivered 10/03/2024 (10 March), read on a month/day computer:

  • The dates become 3 February and 3 October, so =DATEDIF(B2,C2,"d") returns 243 days instead of 8, with no warning.
  • An order dated 10/02/2024 (10 February) and delivered 01/03/2024 (1 March) becomes 2 October and 3 January. The start is now after the end, so DATEDIF returns #NUM!.

See the DATEDIF function guide for its units. Fixing the dates first keeps formulas for adding days and months and finding the first and last day of the month correct.

Practise it#

Practise working with dates in a live spreadsheet: you'll build dates with DATE, pull out the year, month and day, and do date maths, with each formula checked instantly. Start with the text-date exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

B2 holds the text date 15/03/2024 (day/month/year). Click C2 and turn it into a real date with =DATE(RIGHT(B2,4),MID(B2,4,2),LEFT(B2,2)). Press Enter.

fx
ABCD
1
Order
Date (text)
Real date
2
SO-118
15/03/2024
3
SO-119
22/03/2024
4
SO-120
28/03/2024
5
6
7

Tip: DATE wants year, month, day. The year is the last 4 characters, the month starts at character 4, the day is the first 2.

Practise this in a lesson

LessonHow Excel stores dates: DATE, YEAR, MONTH, DAYLearn why every date is secretly a number, then build dates with DATE and take them apart with YEAR, MONTH and DAY.Function guideDATEDIFCalculate tenure, age and contract length with DATEDIF. Learn every unit (Y, M, D, YM), the hidden-function quirks, and practice live.

Frequently asked questions

Why does Excel switch the day and month?

+

Excel reads dates in the order your computer's regional settings use. If the data uses day/month/year and your computer uses month/day/year, 03/04/2024 becomes 4 March instead of 3 April.

How do I swap the day and month in Excel?

+

For dates Excel already converted the wrong way, use =DATE(YEAR(A2),DAY(A2),MONTH(A2)) in a helper column. For dates stuck as text, use Text to Columns with the DMY date option.

Why are some of my dates left-aligned and others right-aligned?

+

The right-aligned ones were converted to dates, possibly with day and month swapped. The left-aligned ones had a day above 12, couldn't be read as month/day, and stayed as text.

Does changing the date format fix swapped dates?

+

No. The format only controls how the date is shown. If Excel stored 4 March instead of 3 April, every format will still show 4 March. You need to rebuild the date.

Sources

  • DATE function - Microsoft Support
  • Split text into different columns with the Convert Text to Columns Wizard - Microsoft Support
  • DATEDIF function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Why Excel swaps the day and month
  2. How to spot swapped dates
  3. Why changing the date format doesn't fix it
  4. Fix 1: Text to Columns for text dates
  5. Fix 2: rebuild text dates with a formula
  6. Fix 3: swap dates that were converted the wrong way
  7. How to prevent swapped dates
  8. Why swapped dates break your formulas
  9. Practise it

Keep reading

Dates· 6 min read

YEAR, MONTH and DAY in Excel: Split a Date Into Parts

The YEAR, MONTH and DAY functions in Excel each take one date and return one part of it as a number. For 15 March 2024 in A2, =YEAR(A2) returns 2024, =MONTH(A2) returns 3 and =DAY(A2) returns 15. Put the parts back together, or change them, with DATE: =DATE(YEAR(A2),MONTH(A2),1) gives the first day of that month.

Dates· 7 min read

First and Last Day of the Month in Excel

For the first day of the month in Excel, use =EOMONTH(A2,-1)+1: the last day of the previous month plus one day. You can also write =DATE(YEAR(A2),MONTH(A2),1). For the last day of the month, use =EOMONTH(A2,0). Change the month number in EOMONTH to move to next month (1) or last month (-1).

Dates· 6 min read

Add Days, Months or Years to a Date in Excel

To add days to a date in Excel, just add the number: =A2+30. For working days, use =WORKDAY(A2,10). To add months, use =EDATE(A2,3), which handles months of different lengths. To add years, use =EDATE(A2,12*n), for example =EDATE(A2,24) for two years. Use negative numbers to go back in time.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free