Need customized Sumif formula

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Excel Experts,

I need to customise the Sumif formula here...if you look at the below table..typical sumif will give the require numbers however, I should get the sumif results at once not at every line where we have same lines....for example below

EMP IDAmountActual SumifRequire Output
11111-950100100
1111195000
3333369800
33333-6980698
4444465000
5555525000
44444-6500650
55555-2500250
1111110000

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>

Can anyone help me on this...
 
Hi Peter, Yes your right and it's my bad given you wrong example...here you can see the updated table ...please help me with formula to achieve this logic...

EMP IDAmountRequire
Results
Comment
11111 $(1,950)HighHigh because one of the value is more than $1000
11111 $1,950High
11111 $100High
11111 $100High
33333 $698LowLow because negative value is less than $1000
33333 $(698)Low
44444 $1,650HighHigh because of positive value is more than $1000
44444 $(650)High
55555 $1,200HighHigh because of positive & Negative value is more than $1000
55555 $(1,200)High
55555 $(1,200)High

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>



Thank you very much always!!!
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
See if this does what you want.

Excel Workbook
ABC
1EMP IDAmountRequire Output
211111($1,950)High
311111$1,950High
411111$100High
511111$100High
633333$698Low
733333($698)Low
844444$1,650High
944444($650)High
1055555$1,200High
1155555($1,200)High
1255555($1,200)High
High Low
 
Upvote 0
Hi Peter,

Sorry for the delay reply. I was out of station so, could not able to reply to your solution.

It's working for the $1000 and when I change the value to $250 ..its not working do you know any reason? Do I need to Tweak the formula other than 1000 number change..

SernoOrderRequire OutputResult
211111($1,950)High
311111$1,950High
411111$100High
511111$100High
633333$698High
733333($698)High
844444$1,650High
944444($650)High
1055555$20Low
1155555($200)Low
1255555($200)Low
1066666$10Low
1166666$200Low
1266666$100Low
1099999($800)High
1199999($800)High
1299999$20High

<colgroup><col span="2"><col span="2"></colgroup><tbody>
</tbody>

If you look at above example EMP ID 66666 not showing correctly. Kindly help
 
Upvote 0
Why should 66666 be "High" as none of the values are above 250?

Is it because the sum of the positive numbers is > 250? If so, I misinterpreted your original question and perhaps was misled by your earlier sample data where there were no examples similar to this. :confused:
 
Last edited:
Upvote 0
Hi Peter,

Its my bad if again confused with my example earlier....its not only greater than 250 in any of the value and even it should also consider Sum value of that particular EMP ID...in the above example EMP ID 66666 should be high because if you sum the value for this EMP ID ..its coming more than 250 value.

Two Conditions....(i) If any one value more than 250 irrespective of positive or negative (i) if sum value of emp ID more than 250 in all these two cased should we "high" if anything below its should be "low"

Hope it clarifies now...
 
Upvote 0
Two Conditions....(i) If any one value more than 250 irrespective of positive or negative (i) if sum value of emp ID more than 250 in all these two cased should we "high" if anything below its should be "low"

Hope it clarifies now...
I'm not sure if it has clarified. The red text indicates to me that in your previous sample, 55555 should also be high since -200 -200 is -400 & greater than 250 but you did not mention that one.

Anyway, based on what you have written, it seems like this to me.

Excel Workbook
ABC
211111($1,950)High
311111$1,950High
411111$100High
511111$100High
633333$698High
733333($698)High
844444$1,650High
944444($650)High
1055555$20High
1155555($200)High
1255555($200)High
1366666$10High
1466666$200High
1566666$100High
1699999($800)High
1799999($800)High
1899999$20High
High Low (2)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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