Flag duplicates with multiple criteria when adding items to table

awaeryum

New Member
Joined
Apr 14, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello everybody, I'm trying to create a spreadsheet that flags whether a new entry is a duplicate that had been already actioned previously. If it's a duplicate but it hadn't been actioned previously, then it shouldn't be flagged.
I'll try to explain this better with an example.

Important: this should be achieved without the use of VBA or macros.

Let's say that this is my starting table:
1618396668684.png

Items in columns A and B are entered by the user, who assigns to each task a status (blank if not actioned, WIP or Done).

If the user enters a duplicate task in column A that was also previously marked as Done or WIP, I would like this to be automatically flagged in column C as shown below:
1618397054129.png


If the new task is a duplicate, but wasn't previously marked as Done or WIP, then it shouldn't be flagged:
1618397161166.png


Is this something that could be done? I'm open to other ideas on how to achieve something similar or improve this procedure.

Thank you.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You obviously don't need to check the first entry, so enter this in cell C3, and copy down:
Excel Formula:
=IF(COUNTIFS(A$2:A2,A3,B$2:B2,"Done")>0,"Yes","")
 
Last edited:
Upvote 0
If this is actually a table, that requires the same formula in every row, here is a slight modification that you can make to the formula to allow you to put it in cell C2 first and copy down:
Excel Formula:
=IF(AND(ROW()>2,COUNTIFS(A1:A$2,A2,B1:B$2,"Done")>0),"Yes","")
 
Upvote 0
If this is actually a table, that requires the same formula in every row, here is a slight modification that you can make to the formula to allow you to put it in cell C2 first and copy down:
Excel Formula:
=IF(AND(ROW()>2,COUNTIFS(A1:A$2,A2,B1:B$2,"Done")>0),"Yes","")
Thank you very much, this is great!

Is there a way to include the "WIP" as well as the "Done" status in the formula?
 
Upvote 0
Thank you very much, this is great!

Is there a way to include the "WIP" as well as the "Done" status in the formula?
One way:
VBA Code:
=IF(AND(ROW()>2,COUNTIFS(A1:A$2,A2,B1:B$2,"Done")+COUNTIFS(A1:A$2,A2,B1:B$2,"WIP")>0),"Yes","")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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