Forum Discussion

jakuzi1's avatar
jakuzi1
Copper Contributor
Sep 11, 2023

Need help with this formula.

I have this formula so far.  It works correctly to add the values in the range ($F$7:$F$110) when the cells in the range ($C$7:$C$110=C112) but I also need it to subtract the values in the range F if the criteria range C is equal to C113 rather than the C112. in the same formula.  Any help would be appreciated thank you in advance. 

=L57+SUMPRODUCT(($C$7:$C$110=C112)*$F$7:$F$110)

5 Replies

    • jakuzi1's avatar
      jakuzi1
      Copper Contributor
      thank you but the formula did not work. It only subtracted the values in range f7:f110. It did not start with the original value L57 nor did it add any of the values it needed to add in range f7f110.
      • jakuzi1 

        Apparently I don't understand what you want.

        Could you provide an example that shows what you want the formula to do?

Resources