+ Reply to Thread
Results 1 to 4 of 4

Automation of extenion of data range for average calculatiions with each new month comes i

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Automation of extenion of data range for average calculatiions with each new month comes i

    Hi Forum,


    I have the attahced data set.

    It shows population, income …data for each month in 3 different financial years.
    With the beginning of a new month, a SAS program runs and generate the value for the past month.
    E.g. values for yellow hihglighted cells, which marks Jun 2015, are now avaiable, as we are now in Jul 2015.

    Q:
    When I enter the value for last monh, that is Jun 2015, I have to manuaaly re-adjust the average formula in "O" column.
    For e.g., O3, O2…..up to O13 cell's equation have to be redjusted to capture Jth column values.
    Would there be any method to automate this process.

    Thanks

    Mirisage
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-06-2014
    Location
    Morrisville, NC
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    43

    Re: Automation of extenion of data range for average calculatiions with each new month com

    Assuming that the only thing with headers in Row 1 will be either blanks, the name of the month, or AVG ______, you can use this. It's one approach and there are plenty of others.

    Enter this in O2 and expand downwards.
    =AVERAGEIFS(2:2,$1:$1,"<>",$1:$1,"<>"&"AVG*")

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automation of extenion of data range for average calculatiions with each new month com

    O4:

    =SUMPRODUCT(($C$4:$N$4<>"")*(C2:N2))/SUMPRODUCT(--($C$4:$N$4<>""))

    And copy up.

    Repeat similar pattern for each block.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Automation of extenion of data range for average calculatiions with each new month com

    Hi Gedwards913 and Daffodil11,

    Many thanks to both of you for this great help.

    Regards

    Mirisa

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Average if data is in the same month of the same year
    By manofcheese in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2014, 05:05 PM
  2. [SOLVED] Auto populate cells from data in a 6 month range starting with the current month
    By ecarnley349 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:32 PM
  3. Replies: 1
    Last Post: 01-25-2011, 10:37 PM
  4. Chart Data Range Automation
    By mcmuney in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-09-2010, 09:52 PM
  5. Average-Range Change Each Month
    By Jani in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-10-2006, 09:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1