Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Average Calculation for Sunday School Year Long Goal

I am trying to maintain an average of 35 in Sunday School. Each week I input the number of attendees in my excel file. I need a formula that will tell me how many I need next Sunday, to make my year long goal of 35 as an average. For Ex:

A B C

1 Date # of Attendees #needed next week to avg 35

2 1/3/10 34 (? Formula so #36 would show)

3 1/10/10 38 (? Formula so #34 would show)

4. Etc. Etc. Etc.

Please help!


Submitted via EggHeadCafe - Software Developer Portal of Choice
Using the WebResource.axd Handler with Embedded ASP.NET Resources
http://www.eggheadcafe.com/tutorials...sourceaxd.aspx
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Average Calculation for Sunday School Year Long Goal

With headers in row 1 and data starting in row 2, I used this in C2:

=35*(COUNT(B$1:B2)+1)-SUM(B$1:B2)
(and dragged down)

But this means you could end up with negative number of required attendees.

=max(0,35*(COUNT(B$1:B2)+1)-SUM(B$1:B2))
would show 0 if you're already assured of hitting 35 as the average.

And if you want to make sure that you don't see a number until the number of
attendees is entered:

=if(b2="","",max(0,35*(COUNT(B$1:B2)+1)-SUM(B$1:B2)))
(and drag down)

Thomas, Almanza wrote:

I am trying to maintain an average of 35 in Sunday School. Each week I input the number of attendees in my excel file. I need a formula that will tell me how many I need next Sunday, to make my year long goal of 35 as an average. For Ex:

A B C

1 Date # of Attendees #needed next week to avg 35

2 1/3/10 34 (? Formula so #36 would show)

3 1/10/10 38 (? Formula so #34 would show)

4. Etc. Etc. Etc.

Please help!

Submitted via EggHeadCafe - Software Developer Portal of Choice
Using the WebResource.axd Handler with Embedded ASP.NET Resources
http://www.eggheadcafe.com/tutorials...sourceaxd.aspx


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Goal Calculation Thomas Almanza Excel Discussion (Misc queries) 5 January 13th 10 02:53 PM
Finding 3rd (or 2nd) Sunday in a given year/month Bob Excel Worksheet Functions 5 March 31st 08 04:32 PM
School year repetitive listing tjsmags Excel Discussion (Misc queries) 0 August 23rd 06 09:14 PM
Formula for year in school? Freshman, Sophmore bob the bolder Excel Worksheet Functions 3 May 2nd 06 09:57 PM
Find the first Sunday for a given year? Eutrapelia Excel Worksheet Functions 2 January 20th 06 06:07 PM


All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"