A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi, Lee Jefferies
Yes, you can do it, but the important part is that the “Yes/blank” range must line up with the rows you are summing. So if your original formula is checking rows 257 to 500, the exclude column also needs to be rows 257 to 500, not B2000:B2104. Otherwise Excel will not know which “Yes” belongs to which row.
One alternative is to use SUMPRODUCT, which is useful when you want to include/exclude rows using more than one condition:
=SUMPRODUCT((Fixtures!$C$257:$C$500=$B38)*(Fixtures!$B$257:$B$500<>"Yes")*Fixtures!$F$257:$F$500)
This means: only add column F where column C matches B38, and column B is not Yes.
If the values you actually want to add are in column E when column B is blank, then use this instead:
=SUMPRODUCT((Fixtures!$C$257:$C$500=$B38)*(Fixtures!$B$257:$B$500="")*Fixtures!$E$257:$E$500)
It is recommended that you keep all three ranges the same start and end rows, otherwise you may get wrong results or a formula error. Its array ranges need the same dimensions, and that TRUE/FALSE checks can be used as include/exclude conditions in the calculation.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.