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?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Hi Paul,
That's right
-
Is that a text/number type column or a date type column?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!