+ Reply to Thread
Results 1 to 3 of 3

Table with row values based on multiple date ranges

  1. #1
    Forum Contributor
    Join Date
    05-21-2014
    Location
    United States
    MS-Off Ver
    Office 365 on Windows 10
    Posts
    122

    Question Table with row values based on multiple date ranges

    I have attached a sample file.

    In column A, I have a list of dates.

    In column B, I have a list of numbers.

    I would like to create a table in which the first row shows the average count of the numbers in rows 2-11, and the second row shows the average count of the numbers in rows 12-21.

    Ideally, I'd like the bottom row (grand total) to be average, not sum.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Table with row values based on multiple date ranges

    What do you mean by "average count" ? Do you mean you want the average of the numbers from rows 2 to 11, and then 12 to 21, and so on ?

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Table with row values based on multiple date ranges

    You can use this formula, say in D2:

    =AVERAGE(INDEX(B:B,(ROWS($1:1)-1)*10+2):INDEX(B:B,ROWS($1:1)*10+1))

    and then copy it into D3 for the next block of numbers.

    I'm not sure what your final sentence means.

    Hope this helps.

    Pete

+ 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] Complex get multiple values or sums from table for date range based on dropdown selection.
    By lOYvEpi6M87nEoIF0ul8 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2021, 04:50 PM
  2. Formula for looking up two values in a table based on a set of ranges
    By robbie45 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-13-2019, 03:03 PM
  3. Highlight cells in calendar based on date ranges in another table
    By ejla in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-20-2017, 02:13 PM
  4. [SOLVED] Sum the values in a column based on the Date ranges
    By gl.shruthi in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-04-2012, 06:04 PM
  5. Returning Values based on date falling between Date ranges
    By honest1122 in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 05:10 PM
  6. Replies: 8
    Last Post: 01-07-2011, 07:36 AM
  7. Looking for Macro to Populate a Table Based on Date Ranges
    By RTM1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2010, 12:34 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