Greater but less than formula

GCLIFTON

Board Regular
Joined
Feb 11, 2016
Messages
60
Need guidance to how to make this formula read = 0 and Less than 5.00 but greater than -5 so -5><5

Also is there a way to have it label the ones summing to 0 "Zero" and label the ones less than 5 but greater than-5 "Less 5"

=ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)=0
 

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.
When i attempted to run that formula it continuous gave me You formula is missing a parenthesis even after i add the parenthesis. I copied and paste your formula and it stil populated that messages.

I am not sure how to attached a file in Mr. Exel I know i can attached one in Excel Forum. It is under the title Round and Sumif Question under Excel Formulas and functions.
 
Upvote 0
Sorry, was actually missing 2 )) at the end.

This should work:
Code:
=IF(ROUND(SUMIFS([amount],[financial complex],[@[financial complex]]),2)=0,"Zero",IF(AND(ROUND(SUMIFS([amount],[financial complex],[@[financial complex]]),2)>-5,ROUND(SUMIFS([amount],[financial complex],[@[financial complex]]),2)<0),"Less 5",IF(AND(ROUND(SUMIFS([amount],[financial complex],[@[financial complex]]),2)>0,ROUND(SUMIFS([amount],[financial complex],[@[financial complex]]),2)<5),"between zero and 5","Not between -5 and 5")))
 
Upvote 0
If I add this to a new column as a sanity check
Code:
=ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)
Then this to a new column
Code:
=IF(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)=0,"Zero",IF(AND(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)>-5,ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)<0),"Less 5",IF(AND(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)>0,ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)<5),"between zero and 5","Not between -5 and 5")))

It shows "Zero" for zero and "Not between -5 and 5" for everything else (which it should, because nothing else is between those numbers...)

The formula works for the criteria you have defined... are you defining the right criteria?
 
Upvote 0
Ok I see what you are saying. I think i have the wrong criteria. I have been meaning for it to say, per the common [Complex CC], Per each amount in that common [complex cc], sum with the other amounts in that common [complex cc] to find a sum of 0 and or =>-5 or =<5. And label those. Which is slightly different than the other criteria.

For instance row 359 to 376. Event though it is 18 lines totaling to 28.45 there are some values in the amount that sum up to Zero if the criteria where to search each amount by the Common [Complex CC] and then sum and label the zero or +\- <> of 5's than this would be the correct criteria to use.

How would that change the previous formula? I totally understand what you are saying now
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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