Countifs - Need an OR Statement not an AND statement
I need to set a Countifs formula that is an OR statement not an AND statement.
Basically I need to count Region Column if Experience is less than 2 in Two different columns. My Formula works but only if BOTH - RN Experience and Medic Experience is less than 2 years. I need it to count Region Column if One or the Other Column is less than 2 years. Below is my formula:
=COUNTIFS(Region:Region, "PacWest", [Paramedic- Years Experience ]:[Paramedic- Years Experience ], <2, [RN - Years Experience]:[RN - Years Experience], <2)
Any Thoughts?
Best Answer
-
You could use a helper column and use this formulas.
=IF(OR([Paramedic- Years Experience]@row < 2, [RN- Years Experience]@row < 2), 1, 0)
This column is labeled Column 28. Then add another column and use the following formula
=SUMIF(Region1:Region10, "PacWest", [Column28]1:[Column28]10)
So if Paramedic Years Experience is less the 2 or Rn-Years Experience is less than 2 it will return a 1
if not it will return a 0. The the second formula will sum if it is "PacWest"
Answers
-
You could use a helper column and use this formulas.
=IF(OR([Paramedic- Years Experience]@row < 2, [RN- Years Experience]@row < 2), 1, 0)
This column is labeled Column 28. Then add another column and use the following formula
=SUMIF(Region1:Region10, "PacWest", [Column28]1:[Column28]10)
So if Paramedic Years Experience is less the 2 or Rn-Years Experience is less than 2 it will return a 1
if not it will return a 0. The the second formula will sum if it is "PacWest"
-
Thank you for your help and advice. Truly appreciated.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!