Question

I have the following countifs formula

=COUNTIFS($F$2:$F$848,Summary!$F5,'Report'!$G$2:$G$848,$Q$10,$G$2:$G$848,$Q$11)

on my sheet, Q10 = Monday, Q11 = Tuesday On 'Report', G2:G848 contains login data

Objective: I need the total count from Report that are either on Monday(Q10) or Tuesday (Q11)

With the current formula I have, countifs is looking for rows that has Monday and Tuesday in the row, which is a wrong.

How can I solve this ?

Was it helpful?

Solution

Presumably F2:F848 is also on Report sheet? Try this

=SUMPRODUCT(COUNTIFS('Report'!$F$2:$F$848,Summary!$F5,'Report'!$G$2:$G$848,$Q$10:$Q$11))

Assumes formula resides on same sheet as the Q10 and Q11 values....

The COUNTIFS function will return an "array" of 2 values, one for Monday (Q10) and one for Tuesday(Q11), then SUMPRODUCT just sums the 2 values to give you the total for both days

OTHER TIPS

=COUNTIF('Report'!$G$2:$G$848,"Q10")+COUNTIF('Report'!$G$2:$G$848,"Q11")

This assumes that 'Report'!$G$2:$G$848 contains the Q10 and Q11 values you're talking about.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top