Hi.
I would like to exclude certain cells from being counted by a SUMIFS function. The cells don’t all have the same text but they have a keyword in common (in this case it’s “1/2”). I’d also like to futureproof it, so I’d like to use a general purpose formula and not just exclude current, specific cells (as more will be added in the future that also contain the keyword).
I know how to exclude cells with a specific text but I can’t figure out how to exclude cells which have a particular word (for instance, in Windows Explorer you could search for “* tree *” and it would give you all files and folders that have the word “tree” anywhere in their name). It should be the same in Calc, and I think it works with pure text, but could it be that, since the ‘word’ I’m excluding is actually a number, it’s not working?
Examples of cells I want to exclude from being counted: “AAA 1/2”, “DDD 1/2”, etc.
So in this simple matrix:
AAA ½ | 1 |
---|---|
AAA | 1 |
B | 3 |
C | 2 |
DDD ½ | 2 |
D | 1 |
I would like to count everything in column B if the cell in column A does not contain the word “1/2”. Ordinarily I’d use something like =SUMIFS(B$1:B$6,A$1:A$6,"<>* 1/2 *"), but it’s not working. It works if I substitute “1/2” for “AAA”, for example, but that’s not what I want, I want to exclude all cells that have the word “1/2” in it. I realise the problem is that the ‘word’ is a number; is there a way around it?
Thanks!