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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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