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
- 66.5K Get Help
- 433 Global Discussions
- 152 Industry Talk
- 494 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 506 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!