Possible method to check duplicate data within multiple columns
Good afternoon,
I apologies if there is a simple solution to my question, still rather new😅
Is it possible to create a formula within a checkbox column that would check multiple columns within the sheet against new data within a row, and if all data matches, the box would be checked.
For example:
An event has been booked for 22-May-2022 at 13:00 within Conference room 1.
A colleague has added a new row which contains the same date / time and room.
The checkbox would then be set to true (1) and conditional formatting would highlight the row indicating an issue.
Thank you very much for your time and effort,
Matthew
Best Answer
-
The basic idea is that you would count how many rows have the "current row" data in them. If that count is greater than one (meaning more than just "this" row), there is a duplicate.
=IF(COUNTIFS([Date Column]:[Date Column], @cell = [Date Column]@row, [Time Column]:[Time Column], @cell = [Time Column]@row, [Room Column]:[Room Column], @cell = [Room Column]@row) > 1, 1)
Answers
-
The basic idea is that you would count how many rows have the "current row" data in them. If that count is greater than one (meaning more than just "this" row), there is a duplicate.
=IF(COUNTIFS([Date Column]:[Date Column], @cell = [Date Column]@row, [Time Column]:[Time Column], @cell = [Time Column]@row, [Room Column]:[Room Column], @cell = [Room Column]@row) > 1, 1)
-
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!