Sep 11 2023 05:21 AM
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)
Sep 11 2023 05:30 AM - edited Sep 11 2023 05:30 AM
Sep 11 2023 06:05 AM
Sep 11 2023 06:49 AM
Apparently I don't understand what you want.
Could you provide an example that shows what you want the formula to do?
Sep 11 2023 07:39 AM
@HansVogelaar Thanks for your help. I do not know how to attach my workbook to this forum, but I was able to receive help from another form and I have the solutions now. The below formula does what I wanted and its much simpler than what I started with.
=L15+SUM((IF(C7:C110=C112,1,-1))*F7:F110)
Sep 11 2023 07:46 AM
I'm glad you have something that suits you, but that formula solves a different problem than what you asked in your first post.