IF duplicate AND a condition is met, then Check Box

I need to create a formula that will check a box if there is a duplicate in one column and in the same row a condition is met.
The duplicate would patient MRN and the condition in would be "Referred".
If the MRN is a duplicate and only if "Referred" is selected for both rows would the checkbox be checked on both rows.
If the MRN is a duplicate, but one row is "Referred" and the other row is "Not Referred" then no checkbox.
Thank you for the help!!
Best Answer
-
You will need to adjust the column names to match your sheet, but other than that, this should get you where you need to go:
=IF(COUNTIFS([Patient MRN]:[Patient MRN], [Patient MRN]@row, [Referred Column]:[Referred Column], "Referred") > 1, 1, 0)
Answers
-
You will need to adjust the column names to match your sheet, but other than that, this should get you where you need to go:
=IF(COUNTIFS([Patient MRN]:[Patient MRN], [Patient MRN]@row, [Referred Column]:[Referred Column], "Referred") > 1, 1, 0)
-
Thank you! This worked!
-
I'm glad it worked for you! 👍
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 154 Industry Talk
- 502 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 79 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!