Help in IF formula

ranthrave

Board Regular
Joined
Aug 26, 2010
Messages
141
Hello sir/maam
Kindly help me with this IF formula.

D87= 394
G84 = 521

My formula
G87 = IF((D87-G84) >D87, D87, D87-G84)

My problem is G87 must be zero if D87 less than or equal to G84.
IF D87 is greater than G84 it should be D87-G84.

Tnx for helping me
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hello sir/maam
Kindly help me with this IF formula.

D87= 394
G84 = 521

My formula
G87 = IF((D87-G84) >D87, D87, D87-G84)

My problem is G87 must be zero if D87 less than or equal to G84.
IF D87 is greater than G84 it should be D87-G84.

Tnx for helping me
Try this...

=IF(COUNT(D87,G84)<2,"",IF(D87<=G84,0,D87-G84))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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