Doubt in nested if

karti1986

Board Regular
Joined
Jun 24, 2014
Messages
60
Hi All

Im trying to make a big fuss of nothing.. hitting my head instead of thinking calm. Appreciate any help on my issue.
I'm trying to rate a set of servers with respect to the no. of alerts which they throw.
Rating being 1-Red, 2-Amber, 3-Green...

Overall average here being = 7, server 1 to server 23 are 1-Red
Take an average from Server 24 to Server 41, which is 5 here.( point where the no. of alerts gets lesser than the overall average(7))
and rate the servers which are in between overall average(7) and the new average(5) as 2 -Amber
Servers below new average(5) are 3-Green
Please help me to accomplish this one..

Server 113
Server 212
Server 310
Server 410
Server 510
Server 610
Server 79
Server 89
Server 99
Server 109
Server 119
Server 129
Server 139
Server 149
Server 158
Server 168
Server 178
Server 188
Server 197
Server 207
Server 217
Server 227
Server 237
Server 246
Server 256
Server 266
Server 276
Server 286
Server 296
Server 305
Server 315
Server 325
Server 335
Server 345
Server 355
Server 365
Server 375
Server 385
Server 395
Server 405
Server 415

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

Thanks in advance guys
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Something like this? Not sure what new average means??

=IF(B1>ROUNDDOWN(AVERAGE(B:B),0),"RED",IF(B1=ROUNDDOWN(AVERAGE(B:B),0),"AMBER","GREEN"))
 
Upvote 0
It didnt work buddy..
my sequence of actions to be
1. take overall average of no. of events Server1 to Server41 (Average=7)
2. compare no. of events with overall average(7), events greater than 7 are RED
3. a breaking point where the condition fails.. here server 24 is the breaking point where the condition fails
4. average of no. of events from the breaking point to end (here Server24 to Server41) which is 5
5. another condition - no. of events which lies between Overall Average(7) and the new average(5) to be AMBER
6. rest of the servers with events less than new average(5) to be GREEN.
a macro to attain this will helpful too..
 
Upvote 0

Forum statistics

Threads
1,203,046
Messages
6,053,190
Members
444,644
Latest member
keepontruckinc4

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