+ Reply to Thread
Results 1 to 6 of 6

Conditional Averging of a single cell Across Multiple Worksheets

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Conditional Averging of a single cell Across Multiple Worksheets

    I am an average or maybe below average Excel user, so please excuse my lack of knowledge with this question. I have been trying to figure this one out for a good while now. Before reading this forum I tried every formula type that the forum said wouldn't work on a three dimensional formula so your help is greatly appreciated.

    Basically I need to average cell D3 across multiple worksheets if cell A1 in those worksheets is equal to 1. A list of the names of the worksheets can be found in a worksheet entitled Overall Averages in cells b59:m59. (not the same worksheet the formula in question will be on and not the same one as the A1 and D3 mentioned above are in). Also there may be blanks in the cells to be averaged that should be exluded from the final calculation.

    All worksheets above are in the same file. Unfortunately the sheets contain some confidential information and therefore I am unable to upload them.

    It sounds easy enough but has been baffling me. Thanks again for all your help.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Averging of a single cell Across Multiple Worksheets

    Try this...

    =SUMPRODUCT(SUMIF(INDIRECT("'"&B59:M59&"'!A1"),1,INDIRECT("'"&B59:M59&"'!D3")))/SUMPRODUCT(COUNTIFS(INDIRECT("'"&B59:M59&"'!A1"),1,INDIRECT("'"&B59:M59&"'!D3"),">0"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Averging of a single cell Across Multiple Worksheets

    I tried the formula, but it gave a REF! error. Could this be because the formula did not reference the "Overall Averages" worksheet?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Averging of a single cell Across Multiple Worksheets

    Are there any empty cells in the sheet name range B59:M59?

    All of the sheets named must exist.

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Averging of a single cell Across Multiple Worksheets

    Thanks alot. I just made a list of sheets on the sheet I was working with and it worked like a charm.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Averging of a single cell Across Multiple Worksheets

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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