Formula to flag duplicates ignoring initial entry

NikiDivi

New Member
Joined
Dec 5, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello and good morning.

I'm using =IF(COUNTIF(F:F,F35)>1,"Duplicate","Initial") to flag duplicates but want the first entry to be labeled initial. Currently, all duplicates, including the initial entry, are being flagged as duplicates. I appreciate your time and assistance.

Thank you,
Nicole
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about
Excel Formula:
=IF(COUNTIF(F$35:F35,F35)>1,"Duplicate","Initial")
 
Upvote 0
That doesn't seem to work. I have 7500 rows of data and even if I change it to =IF(COUNTIF(F:F,F7500)>1,"Duplicate","Initial") it still doesn't work. I want the formula in Column C to search Column F for duplicate values and return duplicate only for the 2nd and subsequent duplicates.
 
Last edited by a moderator:
Upvote 0
What row are you putting the formula into?
 
Upvote 0
In that case it needs to be
Excel Formula:
=IF(COUNTIF(F$4:F4,F4)>1,"Duplicate","Initial")
 
Upvote 0
Solution
The formula @Fluff gave you is meant to be copied down to the end of your data. Are you looking for a single formula that will spill the entire result for you? If so, give this a try (note that you will have to specify the actual range, not the entire column, so change the range as appropriate)...
Excel Formula:
=MAP(F4:F7500,LAMBDA(x,IF(COUNTIF(F4:x,x)>1,"Duplicate","Initial")))
 
Upvote 0
In future, please do not put your reply inside quotes. Just use the quick reply window at the bottom of the page.

It works by counting how many matches there are on the current row & above.
 
Upvote 0
=MAP(F4:F7500,LAMBDA(x,IF(COUNTIF(F4:x,x)>1,"Duplicate","Initial")))
Thank you for your reply. I entered =MAP(F4:F7500,LAMBDA(x,IF(COUNTIF(F4:F7500,F4)>1,"Duplicate","Initial"))) because the data that I'm searching for duplicates is in Column F, rows 4 through 7500. Is this correct?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top