How to Find Missing and Duplicate Dates in an Excel Fiscal Calendar
The calendar has five rows for February 27 through March 2, 2028. The row count looks right until you check the dates. February 28 is in the export twice and February 29 is missing.
Before refreshing a monthly report, check that the calendar has exactly one row per intended day. Microsoft sets these requirements for Power BI date tables: unique dates, no blanks, no missing dates and full years. A fiscal year can start in a month other than January. Use your approved fiscal dates as the source of truth. Microsoft’s date table guidance
Set the dates you expect to see
Use this five-row synthetic extract to check the logic before applying it to a full fiscal year. Paste the following into A1. Format genuine Excel dates as yyyy-mm-dd. If the source arrived as text, keep a copy of the raw column and parse a separate working copy using the source locale. How to check dates after a CSV import
Export date
2028-02-27
2028-02-28
2028-02-28
2028-03-01
2028-03-02
Put the approved start date in G2 and end date in H2. For the sample, enter =DATE(2028,2,27) and =DATE(2028,3,2). Use real date values without times and confirm the start is on or before the end. =H2-G2+1 gives the number of dates you expect, including both endpoints.
Label D1 Expected date and enter =$G$2 in D2. Put this formula in D3 and fill down through the approved end date. Format column D as a date.
=IF(OR(D2="",D2>=$H$2),"",D2+1)
Compare each expected date with the export
Label E1 Copies in export. Enter this formula in E2 and fill down next to every expected date. Use the full source range in place of A2:A6 when checking a real export.
=IF(D2="","",SUMPRODUCT(--ISNUMBER($A$2:$A$6),--($A$2:$A$6=D2)))
A count of 0 means the expected day is missing. A count of 1 is correct. A count above 1 marks a duplicate. In the synthetic sample, E3 is 2 because February 28 occurs at A3:A4. E4 is 0 for February 29. The other three dates each have one match.
The count only includes numeric values that exactly match the expected date. Add this in B2 and fill it down across the exported rows to identify blanks, text, timestamps and dates outside the approved window. Review flagged rows before choosing how to convert or correct them.
=IF(A2="","Blank",IF(NOT(ISNUMBER(A2)),"Review text",IF(MOD(A2,1)<>0,"Review time",IF(OR(A2<$G$2,A2>$H$2),"Outside window","In window"))))
Use this check on the calendar or another table that promises one row per day. A transaction export can legitimately contain several sales on one date. Keep those transactions and join them to a calendar whose date column has been checked.
Use the same check on the next export
For a recurring Power Query workflow, generate the expected dates separately, then compare grouped source-date counts against that list. Keep the missing dates and review the source rows that share a date. In Jolene.pro, try asking: “Compare the exported calendar with my approved date range. List the missing dates and cite the original rows for any duplicate or out-of-range dates.” The synthetic worksheet results were checked independently. A live Jolene.pro result was not verified.
1 comment