ADDING an INDIRECT statement to only count a specific criteria

jmurray394

New Member
Joined
Mar 7, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi! I have a workbook that has a master tab and 2 data tabs. The master tab lists all the companies that owe $. I have two working formulas that work. One that counts the number of occurrences that company shows up in the subsequent tabs, and a second formula that sums the total $ of that company across the tabs.

1. =SUMPRODUCT(COUNTIF(INDIRECT(“’”&ORGS&”’!A2:A700”),A2))

2. =SUMPRODUCT(SUMIF(INDIRECT(“‘“&ORGS&”’!A2:A700”),A2,INDIRECT(“’”&ORGS&”’!H2:H700”)))



I want to add one more criteria to both of these formulas

1. To only count the number of occurrences that company shows up in the subsequent tabs only if its completed status is “No”.

2. To only sum the total $ of that specific company across all the tabs only if the completed stats is “No”
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi j,
how do you know if the completed status is "No", is that in another column? If so, you could try e.g. COUNTIFS & SUMIFS.
Cheers,
Koen
 
Upvote 0
Hi j,
how do you know if the completed status is "No", is that in another column? If so, you could try e.g. COUNTIFS & SUMIFS.
Cheers,
Koen
The last column (column R) in the row has the completed status. I also already have the original COUNTIF and SUMIF in
 
Upvote 0
Untested, something like this:
SUMIFS(INDIRECT(“’”&ORGS&”’!H2:H700”),INDIRECT(“‘“&ORGS&”’!A2:A700”),A2,INDIRECT(“‘“&ORGS&”’!R2:R700”),"No")
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top