Compare dates in a column and return a value if match in another column

Justin Mauzy
✭✭✭✭✭
There are two columns that I need to count and match:
- Date of Purchase
- Lead Tech
Here is what I need the formula to do:
- If there is a name that appears more than once in the Lead Tech column, then:
- Count the number of times they appear in the last 7 days and last 30 days using the Date of Purchase column.
- Return a value of the number of times.
Thank you in advance.
Best Answer
-
Try something like this:
=COUNTIFS([Lead Tech]:[Lead Tech], @cell = [Lead Tech]@row, [Date of Purchase]:[Date of Purchase], AND(@cell>= [Date of Purchase]@row - 30, @cell<= Date of Purchase]@row))
Answers
-
Try something like this:
=COUNTIFS([Lead Tech]:[Lead Tech], @cell = [Lead Tech]@row, [Date of Purchase]:[Date of Purchase], AND(@cell>= [Date of Purchase]@row - 30, @cell<= Date of Purchase]@row))
-
That works perfectly. Thank you for the quick response.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!