If there are duplicates for a corresponding Primary Column, I want computation to appear only once
Hi,
I am trying to find, how many Promotions are for a particular item for a particular Start Date.
Example:
Promotion || Total Number of Promotions for Start Date || Start_Date
Bacon || 1 || 2/4/2020
Chocolate || 3 || 3/14/2020
Chocolate || 3 || 3/14/2020
Chocolate || 3 || 3/14/2020
Chocolate || 1 || 2/14/2020
Above table has Promotions each entered Multiple times, as different people are inputting the date based on other criteria. However, I am looking to have the duplicates removed. Example:
Promotion || Total Number of Promotions for Start Date || Start_Date
Bacon || 1 || 2/4/2020
Chocolate || 3 || 3/14/2020
Chocolate || 1 || 2/14/2020
How do I achieve this?
Thank you,
Deepthi
Best Answer
-
Try changing your formula to something along the lines of...
=IF(COUNTIFS(Promotion$1:Promotion@row, Promotion@row, [Start_Date]$1:[Start_Date]@row, [Start_Date]@row) > 1, 1)
Entering this formula in row 1 and dragfilling down will check off the entry if it is the second or more. It will leave the first entry unchecked.
Answers
-
You would need to use a "helper" checkbox column that would check the box for any duplicate entries. Then you can run a Report based on the boxes not being checked.
-
Hi Paul,
Thank you. I did the helper column, this is what I see:
Promotion || Total Number of Promotions for Start Date || Start_Date || Duplicate
Bacon || 1 || 2/4/2020 || 0
Chocolate || 3 || 3/14/2020 || 1
Chocolate || 3 || 3/14/2020 || 1
Chocolate || 3 || 3/14/2020 || 1
Chocolate || 1 || 2/14/2020 || 0
However, I cannot run a report to only extract for Promotion with '0' in helper column, as none for 'Chocolate' will show up.
Thank you,
Deepthi
-
Try changing your formula to something along the lines of...
=IF(COUNTIFS(Promotion$1:Promotion@row, Promotion@row, [Start_Date]$1:[Start_Date]@row, [Start_Date]@row) > 1, 1)
Entering this formula in row 1 and dragfilling down will check off the entry if it is the second or more. It will leave the first entry unchecked.
-
Hi Paul,
Thank you very much, the formula worked for what I am trying to achieve.
Very much Appreciate your in-timely help!
Thank you,
Deepthi
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!