Instead of COUNT and IF, use SUMPRODUCT in a ‘normal’ (not array) formula:
=SUMPRODUCT((WEEKDAY(‘CD042 Summary’!$A$3:$A$10)=2)*(‘CD042 Summary’!$H$3:$H$10>0)*(‘CD042 Summary’!$E$3:$E$10=”Statements”))
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Count If Array (Excel 2003)
I am trying to create a countif array and it doesn’t appear to be looking at the criteria that I have added. It is counting every row. Can someone take a look at this and tell me where I went wrong. Thanks
=COUNT(IF((WEEKDAY(‘CD042 Summary’!$A$3:$A$10)=2)*(‘CD042 Summary’!$H$3:$H$10>0)*(‘CD042 Summary’!$E$3:$E$10=”Statements”),’CD042 Summary’!$H$3:$H$10,0))
What I really need is an Average IF but it still appears to not recognize the criteria that I have entered.
I see that you changed the question after I posted a reply. If you want an average, try
=AVERAGE(IF((WEEKDAY(‘CD042 Summary’!$A$3:$A$10)=2)*(‘CD042 Summary’!$H$3:$H$10>0)*(‘CD042 Summary’!$E$3:$E$10=”Statements”),’CD042 Summary’!$H$3:$H$10))
as an array formula (confirm with Ctrl+Shift+Enter).
Thanks Han. I made a modification to my post as you were replying. What I am trying to do is average based upon multiple criteria but it seems to be counting everything.
{=AVERAGE(IF((WEEKDAY(‘CD042 Summary’!$A$2:$A$308)=2)*(‘CD042 Summary’!$E$2:$E$308=”Statements”)*(‘CD042 Summary’!$H$2:$H$308>0),’CD042 Summary’!$H$2:$H$308,0))}
This is counting all 308 rows. It does pull by the criteria specified but then divides by all of the rows within that range. How can I set it up to divide by only the cells that have data in them?
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.