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
 
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?
But the formula doesn't return any duplicates.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
But the formula doesn't return any duplicates.
That is because you changed the formula that I posted (you replaced my "x" with F4... that is wrong)... use the exact formula I posted. And yes to your first question... just modify the first range following the word "MAP" and leave everything else in the formula the way I typed it.
 
Upvote 0
As a follow up, if your data might grow in the future and you wanted to account for that growth in the formula without having to go back and change the end cell reference every time your data grows, use this formula instead which allows you to specify a larger end cell than your data currently occupies. So, assuming your data will never go past, say, Row 15000, then use this formula and it will correctly update as new data is entered (use this formula exactly as is, do not change anything except perhaps the 15000)...
Excel Formula:
=TOCOL(MAP(F4:F15000,LAMBDA(x,IF(x="",1/0,IF(COUNTIF(F4:x,x)>1,"Duplicate","Initial")))),2)
 
Upvote 0
Hi Rick, I did exactly what you said. I copied your formula over, changed only the first range following MAP, and left everything else the way you typed it. It still did not work correctly. The formula posted previously by Fluff did, however.
 
Upvote 0
Just so you know, I test my formulas (and VBA code when called for) before posting them, so without seeing you actual data, I can't be sure what the problem is. However, you have a solution, so go with that.
 
Upvote 0
Thanks again, Rick. I appreciate your time and assistance. I've noted the formula for future use when I have more time to try it.
 
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