Aug 09 2024 04:56 AM
Hello,
Please can someone help me with a formula for the following:
Column E is labelled "Priority" with drop down options of "High", "Medium" or "Low" from a lookup table.
Column I is labelled "Status" with drop down options of "Complete", "In Progress" or "Not Started" from a look up table.
I want to count in cell I2, how many priorities in column E are "high" AND column I has the status "In Progress" OR "Not Started" [i.e. a status that is not "Complete"].
I have created a COUNTIFS formula but cannot seem to apply a second criteria that excludes from the count any with the status "Complete": =(COUNTIFS($E7:E13,"High"))
I can then adjust the same formula for "Medium" and "Low" priorities for cells I3 and I4 respectively.
Aug 09 2024 05:35 AM
=SUM(COUNTIFS($E$7:$E$13,"high",$I$7:$I$13,{"In progress","Not started"}))
=SUMPRODUCT(($E$7:$E$13="high")*(($I$7:$I$13="In progress")+($I$7:$I$13="Not started")))
Does any of these formulas return the intended result?
Aug 09 2024 05:42 AM
Assuming the columns of you table are named (or you could use structured references)
= COUNTIFS(Priority, "High", Status, "<>Complete")
Aug 09 2024 05:45 AM
Sorry, the forum was showing 0 responses. Still, good to know we are in agreement!
Aug 11 2024 06:01 AM
@OliverScheurichThank you so much! That worked a treat!
Aug 11 2024 06:06 AM
Aug 11 2024 08:48 AM
Just to clarify the syntax, the status
"<>complete"
means the formula returns a count for items that are not complete. That is because of the "<>" not equal to.
Sep 01 2024 01:37 PM
Sep 02 2024 11:11 AM
= SUMPRODUCT( (COUNTIFS($H$9:$H83,"="&TODAY(),$J$9:$J83,{"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+1, $J$9:$J83, {"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+2,$J$9:$J83,{"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+3,$J$9:$J83,{"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+4,$J$9:$J83,{"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+5,$J$9:$J83,{"Not Started";"In Progress"}))
+ (COUNTIFS($H$9:$H83,"="&TODAY()+6,$J$9:$J83,{"Not Started";"In Progress"})) )
Or:
=SUMPRODUCT((COUNTIFS($H$9:$H83,">="&TODAY(),$H$9:$H83,"<="&TODAY()+6,$J$9:$J83,{"Not Started";"In Progress"})))
Does any of this formulas return the intended result?
Sep 02 2024 11:37 AM
Sep 08 2024 07:34 AM
Sep 08 2024 07:36 AM