Countifs and referencing another sheet
I'm attempting to use a countif using two criteria referencing another sheet. I want to see only the projects in "Entrance/Intake" that are in "House" SHRS. I'm getting the #UNPARSEABLE error.
My Countif formula for only Entrance/Intake works perfectly. I need to slice this data by each "house" (VP) and I cannot figure out what I am doing wrong.
Best Answer
-
You have two separate counts being added together. You are pulling the count for ALL "SHRS" and you are pulling a separate count for ALL of whatever is in the Label4 cell.
If you are trying to count all instances of "SHRS" where {Project Status} matches Label4 (meaning count only rows where both are true at the same time), then you would need to use a COUNTIFS (with the S on the end) to count for multiple range/criteria sets.
=COUNTIFS({House}, "SHRS", {Project Status}, Label4)
Answers
-
thanks Paul - that works but now it's doing some strange counting - for all the different houses I only have 7 projects in "Entrance/Intake" and now for only SHRS it's returning 29 projects (the number should be less than 7). Any thoguhts>
-
You have two separate counts being added together. You are pulling the count for ALL "SHRS" and you are pulling a separate count for ALL of whatever is in the Label4 cell.
If you are trying to count all instances of "SHRS" where {Project Status} matches Label4 (meaning count only rows where both are true at the same time), then you would need to use a COUNTIFS (with the S on the end) to count for multiple range/criteria sets.
=COUNTIFS({House}, "SHRS", {Project Status}, Label4)
-
that worked! Thank you so much!
Help Article Resources
Categories
Check out the Formula Handbook template!