ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumproduct exclude count (https://www.excelbanter.com/excel-worksheet-functions/136480-re-sumproduct-exclude-count.html)

Teethless mama

sumproduct exclude count
 
=COUNTIF(A7:A11,"test")-SUM(COUNTIF(B7:B11,{"problem","solved"}))


"Dreamstar_1961" wrote:

I'm trying to get somproduct to count every occurance of a word but except
where they match another word. like below it would not count both "problem"
and "solved" but would count every thing else, but it don't seem to be
working, this is how I thought it be written
=sumproduct((a7:a60="test")-(b7:b60={"problem","solved"}))
given a result for below of 3, but that is not working as I seem to have a
ghost of 1 coming up,
a7 test b7problem
a8 test b8 solved
a9 test
a10 test b10 resloved
a11 test b11 next




All times are GMT +1. The time now is 09:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com