Identify Duplicate Values, only within the last 7 days, based on unique identifier (code)
I want to identify when a code is a duplicate in the last 7 days but I'm struggling with the logic/syntax.
Essentially people call in for assistance and we track that. When we put a closed date in, automation automatically sends a survey. However, if they call in more than once in a week, I don't want to send them a survey again. So i'm adding the helper column "dup in last week" so I can use as a condition in my automation. But I'm not getting the right formula. I'm hoping the "Dup in Last week" can be a check box column. Below is what I have tried but it doesn't work. Anyone have ideas?
=IF(COUNTIFS([Code]:[Code], [Code@row, [Closed Date]:[Closed Date], [Closed Date]@row > TODAY(-7)) > 1, 1, 0)
Best Answer
-
Hi Jennifer,
Try this corrected formula:
=IF(COUNTIFS(Code:Code, Code@row, [Closed Date]:[Closed Date], [Closed Date]@row > TODAY() - 7) > 1, 1, 0)
It looks like you just needed to make two corrections:
- You had an extra bracket right before Code@row.
- You needed to take the -7 outside of the TODAY() function and place it just behind it, as I have done above. If you are ever wanting to subtract or add days to today's date, do so in this manner.
Hope that helps! Let me know if you need any more details. Give me a vote if I proved helpful.
👍😎👍
Answers
-
Hi Jennifer,
Try this corrected formula:
=IF(COUNTIFS(Code:Code, Code@row, [Closed Date]:[Closed Date], [Closed Date]@row > TODAY() - 7) > 1, 1, 0)
It looks like you just needed to make two corrections:
- You had an extra bracket right before Code@row.
- You needed to take the -7 outside of the TODAY() function and place it just behind it, as I have done above. If you are ever wanting to subtract or add days to today's date, do so in this manner.
Hope that helps! Let me know if you need any more details. Give me a vote if I proved helpful.
👍😎👍
-
Thanks so much, Cody!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!