NM_XC wrote:
I tried COUNTIFS but this then returns a #VALUE! error
Yes, my bad! The source of the COUNTIFS #VALUE error is the different "shapes" of the ranges, namely a single column $B$9:$B$675 and the rectangular area $C$9:$AD$675. No matter....
NM_XC wrote:
I'm afraid I don't follow what you mean by -
=IFERROR(X3/X2 - 1, "")
or
=IF(X2=0, "", X3/X2 - 1)
Where do I incorporate this into the formula?
I was trying to demonstrate the __form__ of formulas that you might use in the cells that return #DIV/0 (and all cells with a similar calculation, even if there is no #DIV/0 error). My bad again for making too many unexplained assumptions! No matter....
Try array-entering (press
ctrl+shift+Enter instead of just Enter) the following formula:
=SUM(IF($B$9:$B$675=B694, IF(ISTEXT($C$9:$AD$675), --($C$9:$AD$675="H"))))
-SUM(IF($B$9:$B$31=B694, IF(ISTEXT($C$9:$G$31), --($C$9:$G$31="H"))))
Excel displays the formula surrounded with curly braces in the Formula Bar. Do not type the curly braces yourself. They indicate that the formula was array-entered. The double negative ("--") converts TRUE and FALSE into 1 and 0.
(Note: In Office 365, you might not need to array-enter such formulas anymore. Or there might be alternative ways to enter such an array formula. I don't know.)
If you need further assistance, upload an example Excel file that demonstrates the __original__ problem (SUMPRODUCT of ranges that contain #DIV/0 errors) to a file-sharing website, and post the public download URL in a response here.
The Excel file does not have to be the original file, which might contain private information and which might be unduly complex for debug purposes. It could have fewer rows and columns of data. And of course, any real names and other personal information
should be replaced.