Identify Duplicates with Same Date in Google Sheets (Formula-Based)

You can identify duplicates with the same date by highlighting or filtering the relevant values in Google Sheets. This technique is especially useful in real-world scenarios where the same item or action may occur more than once on the same day. For example:

  • Detecting customers who placed multiple orders on the same day
  • Tracking repeated entries of the same inventory item within a day
  • Identifying duplicate logins or access events based on timestamps
  • Filtering out repeated medical prescriptions issued to the same patient on a single date

In this tutorial, I’ll show you how to identify duplicates with the same date in Google Sheets using a dynamic formula. Whether your data includes just a timestamp and customer name or more fields like order ID or item details, this approach can adapt to your structure. It’s ideal for spotting repeated actions—like multiple orders by the same person on a single day—and can help you clean, filter, or highlight such duplicates for further analysis.

Sample Data

TimestampCustomer NameOrder ID
01/04/2023 09:12:00BiancaA001
01/04/2023 10:45:00JohnieB001
01/04/2023 15:18:00BiancaA002
02/04/2023 11:00:00MiloC001
02/04/2023 13:22:00BiancaA003
02/04/2023 16:00:00MiloC002
03/04/2023 09:00:00JohnieB002
03/04/2023 11:35:00JohnieB003

In this data:

  • Bianca placed two orders on April 1st
  • Milo placed two orders on April 2nd
  • Johnie placed two orders on April 3rd

These are the types of same-day duplicates you may want to filter or highlight.

Tip: If you want to isolate redundant records for deletion or flagging, use highlighting. If you’re reviewing true duplicates for analysis or cleanup, use filtering.

Filter Duplicates with Same Date in Google Sheets (Identifying True Duplicates)

To filter duplicates with the same date in Google Sheets, use this formula:

=ARRAYFORMULA(
  LET(
    data, A2:C,
    dtCol, A2:A,
    nameCol, B2:B,
    rc, COUNTIFS(nameCol, nameCol, INT(dtCol), INT(dtCol), ROW(dtCol), "<=" & ROW(dtCol)),
    ftrDt, FILTER(dtCol, rc > 1),
    ftrName, FILTER(nameCol, rc > 1),
    FILTER(data, XMATCH(INT(dtCol) & nameCol, INT(ftrDt) & ftrName))
  )
)

You can use this in datasets with either a date or timestamp column. The output will filter all entries with duplicate names on the same date:

Filtered duplicate entries with the same date in Google Sheets using a formula

If a person placed multiple orders on the same day, all of those orders will be included in the filtered result.

Formula Explanation

  • data: Refers to the range A2:C
  • dtCol: The timestamp/date column (A2:A)
  • nameCol: The customer name column (B2:B)
  • rc: A running count of each [name + date] pair using COUNTIFS, where INT(dtCol) strips the time from the timestamp
  • ftrDt and ftrName: Filtered lists of dates and names with more than one occurrence
  • Final FILTER: Uses XMATCH to return rows where the combination of date and name exists in the list of duplicates

Highlight Duplicates with Same Date in Google Sheets (Isolating Repeats)

To highlight only the second occurrence and beyond (treating the first as original), follow these steps:

  1. Select range A2:C
  2. Go to Format > Conditional formatting
  3. Under Format rules, select Custom formula is
  4. Enter this formula:
=ARRAYFORMULA(
  LET(
    dtCol, $A$2:$A,
    nameCol, $B$2:$B,
    rc, COUNTIFS(nameCol, nameCol, INT(dtCol), INT(dtCol), ROW(dtCol), "<=" & ROW(dtCol)),
    ftrDt, FILTER(dtCol, rc > 1),
    ftrName, FILTER(nameCol, rc > 1),
    XMATCH($A2 & $B2, ftrDt & ftrName)
  )
)
  1. Choose a highlight color and click Done
Highlighted second occurrences of same-date duplicates in Google Sheets using conditional formatting

Highlight Rule Explanation

This formula mirrors the one used for filtering but is adapted for conditional formatting. It checks if the combination of date and name in a row exists among duplicates:

XMATCH($A2 & $B2, ftrDt & ftrName)

If it does, the row is highlighted—starting from the second occurrence.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Mode of Comma-Separated Numbers in Excel (Dynamic Array)

There is no dedicated function in Excel to directly find the mode of comma-separated...

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

More like this

How to Find Mode of Comma-Separated Numbers in Google Sheets

Working with comma-separated numbers inside a single cell is a common scenario in Google...

How to Count Merged Cells in Google Sheets (and Get Their Size)

Sometimes, you may have blocks of merged cells in a column or row. But...

Count Consecutive Workday Absences in Google Sheets

This tutorial offers a powerful formula-based solution to count consecutive workday absences in Google...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.