Adding IF condition Formula
Good morning,
I'm struggling with the syntax for the following formula where I'm trying to include a WHERE condition that looks for an active status. The formula works great until I introduce the WHERE condition to the point I've just thrown my hands up. My status flag condition is either 'Active' or 'Not Active', or 'Open'.
=COUNT(DISTINCT(COLLECT({FY Forecasts Resource Name}, {FY Forecasts Product Team}, "xxx")))
I've adjusted it to the following:
=IF({FY Forecasts Resource Status}, "Active", COUNT(DISTINCT(COLLECT({FY Forecasts Resource Name}, {FY Forecasts Product Team}, "xxxx"))))
The results are an 'Invalid Data Type'.
This should be simple but I've managed to not get it done. Any help would be appreciated.
Jason
Answers
-
-
=COUNT(DISTINCT(COLLECT({FY Forecasts Resource Name}, {FY Forecasts Product Team}, "xxx", {FY Forecasts Status}, "Active", {FY Forecasts Status}, "Not Active", {FY Forecasts Status}, "Open"))) how about this?
-
@Marisol YES with one exception…if I include anything other than 'Active' it returns a 0. I don't want it to count 'Not Active' only 'Active' and 'Open'. It is functional, but I'd like to be able to include 'Open' as part of the count when applicable.
-
check the spelling on your sheet you may have a space somewhere.
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
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!