Need help with subtract if False and add if True function

Kusaywa

Board Regular
Joined
Aug 26, 2016
Messages
123
What I have is this: =IF(F3=FALSE,C2-C3,"")
This subtracts the amount in cell C3 from C2 if FALSE is in cell F3

I want to add to this formula to add the amounts if F3 is TRUE

Just not getting it... Thanks for any help.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You need to nest IF statements, i.e.:
Code:
[COLOR=#333333]=IF(F3=FALSE,C2-C3,[/COLOR][COLOR=#333333]IF(F3=TRUE,C2+C3,"")[/COLOR][COLOR=#333333])[/COLOR]
 
Last edited:
Upvote 0
Hello, just for the fun of it, if F3 can only be TRUE or FALSE, then:

=CHOOSE(F3+1,C2-C3,C2+C3)
 
Upvote 0
If we can assume that F3 will only ever be TRUE or FALSE..

=IF(F3,C2+C3,C2-C3)
 
Upvote 0
If we can assume that F3 will only ever be TRUE or FALSE..

=IF(F3,C2+C3,C2-C3)
I thought of that, but thought that blank/empty may be too likely a possibility, so thought it is better to be explicit.
Otherwise, if F3 is empty/blank, it will do the subtraction.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,477
Messages
6,130,879
Members
449,603
Latest member
dizze90

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