+ Reply to Thread
Results 1 to 6 of 6

AVERAGEIF with dynamic range?

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    AVERAGEIF with dynamic range?

    Hello

    I need to average data that is populated daily. Easy peasy when comes to average each day from day 1, but I need now to be automated process tht will take under cosideration only last 4 weeks and will return average figure for each day of the week.
    I have attached what I've done for the total, cant figure out how to determine range that will change daily, for example: from today() check last 4 weeks?

    Appreciate any thoughts
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,188

    Re: AVERAGEIF with dynamic range?

    Rather than just have headings of day of week, they should be dates: And it appears data is missing for some weeks so what should the result in this case.

    Given TODAY() (13 June) is Tuesday, is the average the last 4 weeks from Monday 5th June i.e last week is 4th week.

  3. #3
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Re: AVERAGEIF with dynamic range?

    HI

    Pretty much, I said that for example, lets check last 4 Tuesdays, it may be 6 it may be 8, depends on needs, problem is there will be another week of data so we have to go from today() desired number of weeks back. I have date as well but coulndt force AVERAGEIF to work on dates so I added days.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: AVERAGEIF with dynamic range?

    ARRAY formula in CG3, then drag across for average of last 4 entries as required.
    Pl see the attached file
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Re: AVERAGEIF with dynamic range?

    Thank you
    Appreciate it

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,188

    Re: AVERAGEIF with dynamic range?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] AVERAGEIF - Account for DIV/0, #NA and dynamic range
    By Dave@ExpSC in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-16-2014, 09:37 AM
  2. [SOLVED] Averageif(range,monthcriteria,[average range])???
    By athyeh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 12:09 PM
  3. Using averageif with dynamic range
    By davetcw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2013, 07:17 PM
  4. [SOLVED] averageif for date range
    By tbaron in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2013, 07:48 PM
  5. Excel 2007 : AVERAGEIF range function
    By Jerseynjphillypa in forum Excel General
    Replies: 1
    Last Post: 07-16-2012, 10:45 AM
  6. Excel 2007 : Using YEAR() of a range in AVERAGEIF
    By qaliq in forum Excel General
    Replies: 2
    Last Post: 11-01-2011, 09:17 AM
  7. AverageIf across a range of sheets
    By Ducjes in forum Excel General
    Replies: 4
    Last Post: 07-06-2010, 03:40 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