Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# How to add an additional complex countif to an established sumproduct/countif?

Posted on 2013-06-12
Medium Priority
270 Views
I have a file attached that is currently counting the various codes in column D of the Summaries tab based on the descriptions in column B of the Schedule Codes tab.

I would like to have an initial screening based on the managment areas in column C of the Summaries tab. I copied all of the info I had for area 1A two times. That is why the current formulas show 3 times what the answer should be. I would like each Summary box on the Summaries tab to only show the information if the area in column C matches what is in row 2 of the summary boxes.

What should I add to my current formulas to do this?

Thanks!
ExpertHelp.xlsx
0
Question by:Dominator1025
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 39242070
You can change the COUNTIF part of the formula to a COUNTIFS to check the extra criterion, e.g. with this formula in I3

=SUMPRODUCT(--ISNUMBER(SEARCH("residential",'Schedule Codes'!\$B\$1:\$B\$1000))*COUNTIFS(\$C\$1:\$C\$973,I2,\$D\$1:\$D\$973,'Schedule Codes'!\$A\$1:\$A\$1000))

....and similar for your other calculations

regards, barry
0

Author Closing Comment

ID: 39242085
Barry,

Awesome as always, thanks!

Dom
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.