"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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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