"IF" Formula help

SaraQuinn

New Member
Joined
May 19, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello, I am trying to build a formula that will will be the following results:

I need in column D the result of A + B - C if the amount is less than column C
If the sum of A + B - C is higher than C then I need as a result the sum of A + B - C

So far I get zero using the following formula

=IF(A2+B2-C2>C2,A2+B2-C2,0)

1685117465284.png


Thank you in advance
 

Attachments

  • 1685117049679.png
    1685117049679.png
    15.4 KB · Views: 16

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try =A2+B2-C2
From your description, if the result is > or < C, you're looking for the same calculation.
 
Upvote 0
Your description isn't clear as to what you're looking for...if your Dental plus Vision costs are greater than your remaining benefit then it should be zero? else display remaining benefit?

Try this:
=IF(A2+B2-C2<0,0,A2+B2-C2)
 
Upvote 0
Another possible option
Excel Formula:
=MAX(A2+B2-C2,0)
 
Upvote 1
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top