+ Reply to Thread
Results 1 to 6 of 6

Formula to work out the average of an array from a changing cell

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Formula to work out the average of an array from a changing cell

    Hello every one,

    I need some help in order to keep going and finish an excel file I current work with but I've got stuck in a formula.

    I will try to do my best to explain the formulas and steps to you.

    I have a file with 2 spreadsheets, Forecast is the calculation sheet, MNP00XX-BB is a sheet with data.

    My last formula is =ADDRESS(4,MATCH(E13,'MNP00XX-BB'!B3:M3,0)+1,2,0,"MNP00XX-BB!") and the result is 'MNP00XX-BB!'!R4C[3], this formula gives me the cell in which it will be my starting point for then next formula (the one I do not know), as you see the formula is done in FORECAST but the data is in MNP00XX-BB. This formula above changes any time I type a different date, however there are more formulas in between, from typing the date and the result ('MNP00XX-BB!'!R4C[3]).

    The formula I would like to do is an Average (I think it's better Averagea so that blank cells are not included) of 2 rows the and 3 columns, just one row below from the cell given by('MNP00XX-BB!'!R4C[3]) and three columns to the right including the same column as the formulas says.

    My point is that every time I type a date an so the formula (=ADDRESS(4,MATCH(E13,'MNP00XX-BB'!B3:M3,0)+1,2,0,"MNP00XX-BB!")) changes to another selected cell the average should start from such a cell. (instructions as above)

    Example:

    Date: 15/05/2013

    ..... some other formulas,

    Result: 'MNP00XX-BB!'!R4C[6]

    Average should be: AVERAGE(F5:H6)

    if Date is 15/07/2013 AVERAGE(H5:J6)

    I tried hard to do the formula with AVERAGE(OFFSET(......)) but I couldn't manage.

    If you can help me I would be really grateful.

    Thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to work out the average of an array from a changing cell

    Not sure I understand what you are looking for, but try this
    =AVERAGE(INDEX($B$5:$Y$6,,FORECAST!E14):INDEX($B$5:$Y$6,,FORECAST!E14+2))

    Separately, formula in Cell E12 in FORECAST tab could be simplified to
    =EOMONTH(B4,(DAY(B4)>=20)-1)+1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: Formula to work out the average of an array from a changing cell

    hi,

    The second formula is right except that I just want the average for the years 2012 and 2013.

    I just need the month number to have a reference to start. Those numbers must not need to be included in the average.

    What would be the modification to omit these numbers and do the average of only the data which is the the year's rows.

    Thanks you so much.

  4. #4
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: Formula to work out the average of an array from a changing cell

    Sorry I type the formula wrong, your formula works perfect.

    Thanks

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula to work out the average of an array from a changing cell

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: Formula to work out the average of an array from a changing cell

    ok,

    Thanks for the information.

    I will follow your suggestions.

    Best Regards,

    Francesc

+ 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] How to work AVG (average) formula
    By Curious Dude in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-07-2013, 04:10 PM
  2. How to extend a changing multi cell array formula down a column.
    By Patrician in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2013, 07:07 PM
  3. Formula for weekly average & changing daily formula
    By sandbach in forum Excel General
    Replies: 2
    Last Post: 11-01-2010, 08:15 PM
  4. [SOLVED] Average Array Formula
    By Rachael in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Average Array Formula
    By Rachael in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2005, 11:05 PM

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