Help with IF Greater than 1 or less than -1

Knockoutpie

Board Regular
Joined
Sep 10, 2018
Messages
116
Office Version
  1. 365
Platform
  1. Windows
Hi All, I have a formula comparing two numbers, In most cases due to rounding it's above $0.00 or under $1.00. (ignore these)

In some cases the difference is greater than $1.00 or less than $-1.00

How can I get this formula to display that?

=(SUMIF(AG:AG,AG20,AD:AD)-I20)
Current value of this formula is 363.16, i would like this formula result to say "exceed"
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi All, I have a formula comparing two numbers, In most cases due to rounding it's above $0.00 or under $1.00. (ignore these)

In some cases the difference is greater than $1.00 or less than $-1.00

How can I get this formula to display that?

=(SUMIF(AG:AG,AG20,AD:AD)-I20)
Current value of this formula is 363.16, i would like this formula result to say "exceed"
Try This
Excel Formula:
=Let(RDiff,(SUMIF(AG:AG,AG20,AD:AD)-I20),IFS(RDiff>0,"Exceed",RDiff<0,"Short",True,"No Diff"))

OR

Excel Formula:
=IFS((SUMIF(AG:AG,AG20,AD:AD)-I20)>0,"Exceed",(SUMIF(AG:AG,AG20,AD:AD)-I20)<0,"Short",True,"No Diff")
 
Upvote 0
Here you can also try -

Excel Formula:
=Let(RDiff,(SUMIF(AG:AG,AG20,AD:AD)-I20),IFS(RDiff>0,"Exceed by "&RDiff,RDiff<0,"Short by "&RDiff,True,"No Diff"))
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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