I tried SUMIF function to sum the values, but this don't works:
Code: Select all
=SUMIF(F5:F60; "-0,10; -0,38")
Code: Select all
=SUMIF(F5:F60; "-0,10; -0,38")
[Tutorial] The SUMPRODUCT function
I meant second case. It works, Thank you.MrProgrammer wrote: ↑Tue Jan 23, 2024 1:45 am If you meant that you want to sum only those two specific values, ignoring any other negative values, use:
=SUMPRODUCT(F5:F60;F5:F60=-10E-2)+SUMPRODUCT(F5:F60;F5:F60=-38E-2) or
=SUMPRODUCT(F5:F60=-10E-2)*-10E-2+SUMPRODUCT(F5:F60=-38E-2)*-38E-2