OleMiss2010
Member
I have a formula that gives me a count of all instances of a certain things across an entire workbook. The formula is repeated several times for different issues, but an essentially the formula is:
SheetList is a defined name that lists out all of the sheets in the workbook. And C11 is a cell that contains the issue that the formula is counting.
This all works perfectly. However, I have a new caveat that I need to add for which I would prefer to use a formula rather than a vba.
I need to make the formula only count instances that meet the above criteria AND where the cell below whereever it finds the issue throughout the workbook does NOT say "Approved" or "Cured". Essentially throughout the workbook there are a varying number of instances where somewhere in column C there may be certain issues noted and in the cell immediately below that it is noted if this issue was "Approved" or "Cured". I need to only count the issues that are "Not Approved" or have not been commented on. I could obviously do a hidden field out to the side of the sheets mentioned in the SheetList, but there are a lot of sheets and a lot of potential issues.
Any thoughts about how I can make this formula work? The trick is making the formula look in the row below the instance of the issue.
Code:
=SumProduct(CountIf(Indirect("'"&SheetList&"'!C:C")"="&C11)
SheetList is a defined name that lists out all of the sheets in the workbook. And C11 is a cell that contains the issue that the formula is counting.
This all works perfectly. However, I have a new caveat that I need to add for which I would prefer to use a formula rather than a vba.
I need to make the formula only count instances that meet the above criteria AND where the cell below whereever it finds the issue throughout the workbook does NOT say "Approved" or "Cured". Essentially throughout the workbook there are a varying number of instances where somewhere in column C there may be certain issues noted and in the cell immediately below that it is noted if this issue was "Approved" or "Cured". I need to only count the issues that are "Not Approved" or have not been commented on. I could obviously do a hidden field out to the side of the sheets mentioned in the SheetList, but there are a lot of sheets and a lot of potential issues.
Any thoughts about how I can make this formula work? The trick is making the formula look in the row below the instance of the issue.