Forum Discussion

mmclane's avatar
mmclane
Copper Contributor
Feb 16, 2023

Help with SUMPRODUCT formula - Include 0 and 1 but not 10

Hello! I have a column that contains numbers 0 through 10. I'd like to count (with filter) cells that are <=6. I have this formula, but it is including cells with 10. How do I exclude 10?

=SUMPRODUCT(SUBTOTAL(3,OFFSET(G2:G286,ROW(G2:G286)-MIN(ROW(G2:G286)),,1)),ISNUMBER(SEARCH("6",G2:G286))+ISNUMBER(SEARCH("5",G2:G286))+ISNUMBER(SEARCH("4",G2:G286))+ISNUMBER(SEARCH("3",G2:G286))+ISNUMBER(SEARCH("2",G2:G286))+ISNUMBER(SEARCH("1",G2:G286))+ISNUMBER(SEARCH("0",G2:G286))+0)

6 Replies

Resources