How do I count the reason for the consult, AND the year it took place?
I tried to amend this formula to report by year. Below is the formula I tried, which didn't work. The reasons are part of a drop down on another sheet. The consult date is on the same sheet, but the full date is in the cell, 10/12/2017, 11/1/2017, etc.
My current formula in the TOTALS to DATE is: =COUNTIF({Reason for Consult}, CONTAINS("fever", @cell)) This formula does work.
Here is what I tried in order to count the number of times fever AND the year 2017 were true.
=COUNTIFS({Reason for Consult}, CONTAINS("fever", @cell), ({Consult Date}, AND((@cell>=DATE(2017, 1,1), @cell<=DATE((2017, 12, 31))))
Best Answer
-
@kristenryan Hi! , I wonder if using YEAR and HAS give you an output =COUNTIFS({Reason for Consult}, HAS(@cell,"fever"), {Consult Date}, YEAR(@cell)=2017)
Answers
-
@kristenryan Hi! , I wonder if using YEAR and HAS give you an output =COUNTIFS({Reason for Consult}, HAS(@cell,"fever"), {Consult Date}, YEAR(@cell)=2017)
-
@Razetto that worked perfectly. Thank you for your assistance.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!