Double IF needed

Lawbut

New Member
Joined
Sep 13, 2014
Messages
9
Beginner, question #2

IF C4 >= D4+E4, then Subtract D4+E4 from C4
IF C4 < D4+E4, then do nothing

Can this be written in one formula?

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Lawbut,

Yes.

The way you have written your logic above is prettmuch as you will need to create an Excel IF statement.

IF(Test Condition ,This if test = true, Otherwise this if test = false)

Look at the If statement answer I gave you earlier and you should be able to work it out for yourself.
Give it a try.

Come back if you struggle.
 
Upvote 0
Well done!

We all start knowing nothing but hopefully we learn a bit as we go along.
Rest assured, Newbie or Oldbie we all make silly mistakes.
Enjoy Excel.
 
Upvote 0
Also need to add If C4 is less than C5 then value is zero<c5, then="" value="" is="" 0<="" html=""></c5,>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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