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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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
That works, thank you. Can you quickly explain why it works?
 
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,221,672
Messages
6,161,199
Members
451,688
Latest member
Gregs44132

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