Search code examples
excelexcel-2010libreoffice-calc

excel: make SUM.IF work with formulas


On excel I have a

=SOMME.SI(B$10:B248;B7;L$10:L248)

B7 contain "a", L$x:L$y has values to sum

If the zone B$10:B248: has "a" or "b" that work very well.

But if the zone B$10:B248: has a formula with an IF:

SI("zf"=M18;"a";"?")

That did not work any more, how can I explain to excel/calc that

SI("zf"=M18;"a";"?") should be == "a" 

in case the if conditions is true ?


Solution

  • The question mark is a wildcard. By referencing it as the criteria, you are telling SUMIFS to accept any single character. You are going to have to change the ? to something else to avoid wildcard matches.

        sumif_wildcard