Multiple criteria in one formul

Belinda Payroll

New Member
Joined
Oct 8, 2014
Messages
2
Hi,

I am trying to do the following:

IF D20 is less than zero, return D17
OR IF D20 is greater than zero, return value of D17 minus D20
OR IF D20 is greater than zero and D20 is greater than D17, return zero

This is the formula that I created: =+IF(D20<=0,D17,IF(D20>=0,D17-D20,IF(D20>=0,D20>D17,0)))

The 1st 2 criteria are working correctly but I cannot get the 3rd one to work. Can someone please help me.
Thanks Belinda.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
(SOLVED) Multiple criteria in one formul

Thank you. The formula you provided worked exactly as it should. This query is now resolved.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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