Flagging/Removing duplicate rows that do not include comments
We have a newsletter that gets sent out, and tracks if anyone opens or clicks through them. That Excel file is uploaded to Smartsheet. We then follow up with anyone who interacted with the newsletter, and follow ups are tracked with comments. Is there a way to delete duplicate rows based on whether or not there are already comments for a company?
Answers
-
Hi @Nick Winkley,
You will first need to determine what constitutes a duplicate row. If it's just one value in a column then create a new column that counts the occurrence of that value in the entire column. Anything with a count higher than 1 is a duplicate., Then you can move all rows with a value greater than 1 another sheet and delete from there. Or create a filter and manually delete based on the filter whenever you want to clean things up.
As an example, if your sheet has a column called Company and you have field for comments called Comment. Create a field (Checkbox) called Duplicate and put this formula in the each row.
=IF(AND(COUNTIFS(Company:Company, Company@row, Comment:Comment, <>"") > 0, Comment@row = ""), true, false)
This will flag any rows that have a duplicate company name and that have a blank comment (in other words a comment has already been added for the same company on another row.
I hope this help.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Hi Ramzi,
Thanks for the reply. I’m specifically checking to see if I can use formulas against the Smartsheet comments column, not a text column called Comments
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 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!