Finding duplicates and checcking blank cells
Hi there,
I am at my wits end and I think it is a very easy solution, however I cant see it.
I have a column of project numbers, and I am trying to see if there are any duplicates, as well as if the project number cell is black, to leave it blank. What I have done is sort the project number column in ascending order and in another column I did e.g: =IF([Project Number]17 = [Project Number]18, "Duplicate"). This works fine, however I would also like to add a condition to check if the project number cell is blank. I have tried the formula in the picture, but the result is unparseable. Am I formatting he two conditions in a wrong way or what could the problem be?
Could you please help?
Thank you!
Best Answer
-
Try something like this...
=IF(AND([Project Number]@row <> "", COUNTIFS([Project Number]:[Project Number], [Project Number]@row) > 1), "Duplicate")
This will allow you to sort the rows in any order and it will still check for duplicates.
Answers
-
Try something like this...
=IF(AND([Project Number]@row <> "", COUNTIFS([Project Number]:[Project Number], [Project Number]@row) > 1), "Duplicate")
This will allow you to sort the rows in any order and it will still check for duplicates.
-
Thank you Paul! Very helpful, it seems to be working great :)
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!