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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!