+ Reply to Thread
Results 1 to 5 of 5

Building a Data Summary Page with the INDIRECT() Function

  1. #1
    Registered User
    Join Date
    06-01-2021
    Location
    Boston, USA
    MS-Off Ver
    2013
    Posts
    2

    Building a Data Summary Page with the INDIRECT() Function

    Hello, I'm new to the forum and hoping someone can help me.

    I'm trying to agregate data across monthly entries in a way that is easy to update with each new month.

    For example, the display cell would contain =AVERAGE(INDIRECT("R14")). R14 would then contain '2021-04:2020-07'!E5, where the two yyyy-mm dates are the names of the sheets within the file. I've also tried directly referencing the cell as both a string and a value. Each throws a different error.


    =AVERAGE(INDIRECT("R14")) ==> #DIV/0!
    =AVERAGE(INDIRECT(R14)) ==> #REF!
    =AVERAGE(R14) ==> #DIV/0!
    =AVERAGE("R14") ==> #VALUE!

    Is this even a valid method or am I up the creek? Is there a simpler way to accomplish the same thing? Ideally, I'd like to get summary data over the whole set and over the past year.

    Thank you!

  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,723

    Re: Building a Data Summary Page with the INDIRECT() Function

    The first one in your list is the way to do it. It gives a #DIV/0! error if the cell pointed to is empty, as there are no cells which contribute to the result. You can avoid that by doing this:

    =IFERROR(AVERAGE(INDIRECT("R14")),"")

    which will return a blank instead.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-01-2021
    Location
    Boston, USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Building a Data Summary Page with the INDIRECT() Function

    Thanks Pete,

    I think my initial explanation was incomplete. There are enough number values in the referenced cells for the mathematical functions to work. The funciton =AVERAGE('2021-04:2020-07'!E5) returns the correct number.

    The problem only shows up when I try to drop in the INDIRECT().

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Building a Data Summary Page with the INDIRECT() Function

    The INDIRECT function will not work with 3D reference formulae, I'm afraid.
    A workaround would be to split the range string in two cells, say 2021-04 in R14 and 2020-07 in S14.
    Then use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Building a Data Summary Page with the INDIRECT() Function

    May be try (SUMIF & INDIRECT / COUNTIF &INDIRECT) to get the AVERAGE

    upload a sample worksheet.
    Quang PT

+ 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] Building a summary table from vertical data
    By mackmay18 in forum Access Tables & Databases
    Replies: 11
    Last Post: 12-04-2019, 05:00 AM
  2. [SOLVED] Pull data to summary page
    By excelnoob927 in forum Excel General
    Replies: 3
    Last Post: 01-08-2015, 05:08 PM
  3. Building a Summary Report
    By Matty5894 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2014, 04:33 AM
  4. Building data entry page
    By Thupp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2013, 03:42 PM
  5. INDIRECT referencing of multiple worksheets from summary page
    By bravo291 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-02-2012, 07:51 AM
  6. [SOLVED] INDIRECT referencing of multiple worksheets from summary page
    By bravo291 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-31-2012, 11:05 AM
  7. Pulling Data Into Summary Page
    By arod in forum Excel General
    Replies: 4
    Last Post: 04-22-2010, 07:03 PM

Tags for this Thread

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