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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!