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
- Smartsheet Customer Resources
- 63.1K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 34 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!