Countifs with special requirement
Hi,
I need to use countifs to count the number of calls made to customers today.
In my example, Touch 1 and Touch 2 are calls today, however I also need some filtering with user input.
The criteria are as follow:
- Date equals to "Free Text Date" of 20/04/2020 (X1)
- Salesman equals to "Free Text Salesman" Peter (X2)
- Only Touch 1 and Touch 2 are considered as calls
I was trying =COUNTIFS(Stage:Stage, ("Touch 1" OR "Touch 2"), Salesman:Salesman ("X2"), Date:Date ("X1"))
X1 and X2 should be freely populated by users of the sheet without changing the code
Answers
-
I assume they are putting the date you are referencing in the [Report2] column?
-
Hi Paul,
That's right
-
Is that a text/number type column or a date type column?
-
Its a text/number, the column is not specified to a date type
-
Ok. Try something like this...
=COUNTIFS(Stage:Stage, OR(@cell = "Touch 1", @cell = "Touch 2"), Salesman:Salesman, [Report2]2, Date:Date, @cell = DATE(VALUE("20" + RIGHT([Report2]1, 2)), VALUE(MID([Report2]1, 4, 2)), VALUE(LEFT([Report2]1, 2))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!