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.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!