Maintaining constant average

andyb16

Board Regular
Joined
Apr 19, 2011
Messages
77
Hi Guys,

I have a s'sheet within which I populate the count of days worked by a certain person. I want to write a formula that will keep the average aggregate count to 19.

For eg. suppose Jan days worked = 20, Feb days worked = 18, So March days worked should be 57- (20+18) = 17 days, where 57 is derived as 19*3. This should continue for the entire year.

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Assuming your employee's Month1 figure is in A1 and his Month2 figure is in B1, place this in C1:-
Code:
=19-SUM($[COLOR=blue][B]A1[/B][/COLOR]:[B][COLOR=magenta]B1[/COLOR][/B])+(19*COUNTA($[COLOR=blue][B]A1[/B][/COLOR]:[COLOR=magenta][B]B1[/B][/COLOR]))

Put various values in A1 and B1 and test that C1 is correct.

Finally copy C1 across to D1, E1, F1, etc.

When you know his Month3 figure, enter it in C1 and you will notice that D1 recalculates if the A1:C1 average isn't exactly 19.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

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