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 Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

Reset SCAN by Another Column in Google Sheets and Excel

Resetting SCAN function results based on values in another column is a topic of...

How to Get the Fastest Time for Each Person in Google Sheets

Whether you’re tracking race results, event times, or any other timed activities, finding the...

Highlight the Smallest N Values in a Column in Google Sheets

Want to visually spotlight the lowest values in your data? In this tutorial, you'll...

More like this

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

How to Get the Fastest Time for Each Person in Google Sheets

Whether you’re tracking race results, event times, or any other timed activities, finding the...

Highlight the Smallest N Values in a Column in Google Sheets

Want to visually spotlight the lowest values in your data? In this tutorial, you'll...

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.