There is a new sheet on your sample spreadsheet called MK.Idea. There you will find this formula:

=ARRAYFORMULA(COUNTIF(UNIQUE(SPLIT(FLATTEN(Sheet1!B1:G1&"|"&Sheet1!B2:G),"|")),"Grass"))

That uses UNIQUE and a SPLIT(Flatten technique to isolate the "grass" values that are duplicates in a given column

Answer from MattKing on Stack Overflow
🌐
Reddit
reddit.com › r/googlesheets › how does countif()>1 work?
r/googlesheets on Reddit: How does Countif()>1 work?
June 24, 2024 -

In order to find duplicates in a spreadsheet I have been using the formulas =IF((COUNTIF(P:P, C1)>1), “duplicate”, “nonduplicate”)

What I found is that it was catching most duplicates but not all.

I looked at a pair that should have been tagged as duplicates to try to see what was different about them, but they both were the same font, size, and color, were both not bolded, italicized, or underlined, and neither had extra spaces at the end.

I started fiddling around with the formula to see what would happen. I changed it from >1 to >.5 and when I checked some entries I knew were duplicates it marked them as such, and I didn’t find any that it marked as duplicates that were actually not.

So what I’m wondering is, What does the >1 mean? Why did it work when I lowered the 1 to .5? And will >.5 correctly identify duplicates and leave out different entries?

Thank you! Edit: adjusted format of post for clarity

🌐
Coursera
coursera.org › coursera articles › data › data analytics › how to highlight duplicates in google sheets
How to Highlight Duplicates in Google Sheets | Coursera
November 18, 2025 - Highlighting duplicates in Google Sheets requires conditional formatting using the custom formula =COUNTIF (A:A, A1)>1.
People also ask

What Is the Formula to Highlight Duplicates in Google Sheets?
You should combine the COUNTIF formula with the Conditional formatting menu to highlight duplicates.
🌐
productivityspot.com
productivityspot.com › home › functions & formulas › how to highlight duplicates: google sheets guide
How to Highlight Duplicates: Google Sheets Guide
How Do I Find Duplicates in Two Columns in Google Sheets?
You have to use absolute values as the cell references in the Custom formula inside the Conditional formatting menu. Here's an example of how to check for duplicates in Google Sheets across two columns.
🌐
productivityspot.com
productivityspot.com › home › functions & formulas › how to highlight duplicates: google sheets guide
How to Highlight Duplicates: Google Sheets Guide
How Do I Compare Different Google Spreadsheets for Duplicates?
To highlight duplicate cells across sheets, you have to use a complex formula such as this one: “=AND(A2=INDIRECT("Sheet1!A2:A"),B2=INDIRECT("Sheet1!B2:B"), C2=INDIRECT("Sheet1!C2:C"))"
🌐
productivityspot.com
productivityspot.com › home › functions & formulas › how to highlight duplicates: google sheets guide
How to Highlight Duplicates: Google Sheets Guide
🌐
Arcade
arcade.software › guides › how-to-highlight-duplicates-in-google-sheets
How to Highlight Duplicates in Google Sheets
‍Launch Google Sheets and highlight the cells where you want to check for duplicates (e.g., a single column or a full table).‍ ... ‍Click Format in the top menu, then choose Conditional formatting to open the sidebar on the right. ... ‍Use the COUNTIF formula.
🌐
Statology
statology.org › home › how to count duplicates in google sheets (with example)
How to Count Duplicates in Google Sheets (With Example)
November 25, 2022 - Simpler way to find all the duplicates: (Optional) Add a column numbered serially, 1,2,3,… Sort the entire sheet by the column with suspected duplicated. Add a column to the sheet with a formula comparing each cell in the “duplicates” column with the one above it.
🌐
Reddit
reddit.com › r/googlesheets › how to make countifs work? (or how to delete duplicates based on several criterias)
r/googlesheets on Reddit: How to make COUNTIFS work? (Or how to delete duplicates based on several criterias)
January 6, 2024 -

Solution found -
Thanks for the solution

u/AdministrativeGift15

Hello I have a question regarding the Countifs formula in conditional formatting. As you can see the inmage below I have highlight duplicates based on the Link. In conditional formatting I have used the =COUNTIF(B:B; B1)>1

To make the sheet show duplicates. However I would like for the conditional formatting to work like this instead -If the Link is duplicated the color should be as shown in the picture. If however a special role in Column F (Risk/Borrower) is shown like here the color should change, but only on the rows where there is a duplicate.

I have tried using the method shown in Support.Google.com

COUNTIFS(A1:A10, ">20", B1:B10, "<30")

And then change it to this - =COUNTIFS(B:B; B1 ">1"; F:F; F1 "Risk")

To make the once where both criterias are met, they should be hightlighed.

If You know of a way to delete one of the rows where both criterias are met, That would be a life saver, Right now I have around 90,000 rows I need to manually look through.

🌐
Sheetgo
sheetgo.com › home › how to highlight duplicates in google sheets? (2026 tutorial)
How to Highlight Duplicates in Google Sheets? (2026 Tutorial) - Sheetgo
July 28, 2026 - To highlight duplicates in Google Sheets, select the range > click Format > Conditional Formating > Format Rules > Custom Formula Is. Enter the formula =COUNTIF(A:A, A1) > 1 and click Done.
Find elsewhere
🌐
Google Support
support.google.com › docs › thread › 14470601 › google-docs-countif-for-duplicates-across-multiple-columns
Google Docs: COUNTIF for duplicates across multiple columns - Google Docs Editors Community
August 21, 2021 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Google Support
support.google.com › docs › thread › 259861149 › how-to-display-count-of-duplicates-in-a-range-of-cells
How to display COUNT of duplicates in a range of cells? - Google Docs Editors Community
February 20, 2024 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Productivity Spot
productivityspot.com › home › functions & formulas › how to highlight duplicates: google sheets guide
How to Highlight Duplicates: Google Sheets Guide
January 4, 2024 - Let’s say in our example below, ... to “Custom formula is” and enter the duplicate check formula =COUNTIF(ArrayFormula($A$2:$A2&$B$2:$B2),$A2&$B2)>1...
🌐
Ablebits
ablebits.com › ablebits blog › add-ons for google sheets › google sheets functions › how to find duplicates in google sheets: check, count, filter & remove
How to find duplicates in Google Sheets: check, count, filter & remove
May 1, 2026 - Once found, it sums them up. Then, IF checks this total, and if it's greater than 1, it says Duplicate, otherwise, Unique. As you copy the formula down, A2 automatically changes to A3, A4, A5, and so on to check each record against the entire list.
🌐
Sheetrix
sheetrix.com › home › google sheets count duplicates only: how to count duplicates in google sheets
Google Sheets Count Duplicates Only: How to Count Duplicates in Google Sheets | Sheetrix
December 26, 2025 - Instead of dumping formulas, we’ll focus on why each approach works, when to use it, and what mistakes to avoid. Counting duplicates only means you’re excluding unique values and counting only the repeated occurrences. For example, in the list below: ... The total number of duplicates is 3, not 5 or 6. This is where many users get tripped up—Google Sheets does not have a built-in “count duplicates only” function, so you need to combine logic. COUNTIF is usually the first function people try, and it’s a good starting point.
🌐
Numerous.ai
numerous.ai › blog › how-to-find-duplicates-in-google-sheets
5 Ways to Find Duplicates in Google Sheets in Less Than 5 Minutes - Numerous.ai
January 23, 2026 - There are no helper columns or manual filtering: just quick visual feedback. Here's how it works: open Format > Conditional formatting, choose your data range, set the format rule to "Custom formula is," and type `=COUNTIF($A:$A, $A1)>1`, changing the column letter if needed.
🌐
Ablebits
ablebits.com › ablebits blog › add-ons for google sheets › highlight duplicates in google sheets: conditional formatting vs add-on
Highlight duplicates in Google Sheets: conditional formatting vs add-on
August 10, 2016 - Read this article to learn more about relative, absolute, & mixed cell references. Pick a color in the Formatting style section and hit Done · This COUNTIF scans all 3 columns and counts how many times each value appears in the whole range.
🌐
The Bricks
thebricks.com › home › resources › how to count duplicates in google sheets
How to Count Duplicates in Google Sheets
April 22, 2025 - Enter the Custom Formula: In the text box that appears, type this formula: =COUNTIF(A$2:A$500, A2) > 1 Make sure to change the end of the range (`A$500` in this case) to match your selection.
🌐
YouTube
youtube.com › watch
Highlight Duplicates in Google Sheets with Conditional Formatting | CountIF - YouTube
In this Excel video tutorial, we gonna see how to Highlight Duplicates in Google Sheets with Conditional Formatting and using the formula CountIF or countif ...
Published: November 23, 2023
🌐
Reddit
reddit.com › r/sheets › get count of duplicate values in column.
r/sheets on Reddit: Get count of duplicate values in column.
December 2, 2022 -

I have a column with ID's, the column constantly gets new ID's added to it and I need a count of how many duplicate ID's are in the column. So, something like this =(COUNTIF(Range,ID)>1) is not an option since I'm not interested in knowing what ID is a duplicate I just want to know how many duplicates in total are in the column.

Example:

31430926
31430891
39041686
39041686
39041686
30422494
31430911
30422550
30422550

In this example, the formula or script should return a value of 3 since you have 3x 39041686 & 2x 30422550.

🌐
Rows
rows.com › blog › post › how-to-highlight-duplicates-in-google-sheets
How to Highlight Duplicates in Google Sheets? [2025]
If you want to find out how many times each value appears in a range, you can use: ... This formula counts how many times the same value used in cell A1 appears in the entire column A. If the result is greater than 1, the first value is duplicated.
🌐
Spreadsheet Point
spreadsheetpoint.com › home › google sheets tips › how to highlight duplicates in google sheets
The fastest way to highlight duplicates in Google Sheets
If you add a value that creates a new duplicate, it gets highlighted immediately. No manual refresh needed. When you use a custom formula in conditional formatting, Google Sheets evaluates it for every cell in the selected range.
Published: February 23, 2026
🌐
Sheets Bootcamp
sheetsbootcamp.com › home › conditional formatting › highlight duplicates in google sheets (easy guide)
Highlight Duplicates in Google Sheets (Easy Guide) | Sheets Bootcamp
March 6, 2026 - Highlighting duplicates in Google Sheets uses conditional formatting with a COUNTIF-based custom formula. COUNTIF counts how many times a value appears in a range, when the count exceeds 1, the value is a duplicate.