+ Reply to Thread
Results 1 to 3 of 3

Indirect concatenate

  1. #1
    Registered User
    Join Date
    01-16-2009
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Indirect concatenate

    I am trying to get an average of numbers from a specific worksheet tab using Indirect and Concatenate. Here is what I thought it should be:

    =INDIRECT(CONCATENATE("=AVERAGE(' ",A7,"'!$C$6:$E$11)"))

    A7 is the cell that has the name of the tab. The range on the worksheet tab is $C$6:$E$11. I have tried it several different ways. This formula returns the dreaded #ref error.

    Using Indirect and Concatenate I can get a specific cell, but have not been able to make it work with the average function. I am using Excel 2003.

    Not sure if what I want to do is possible. Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    So as you've discovered, that won't work. What are you trying to do?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Maybe:

    =AVERAGE(INDIRECT(A7&"!$C$6:$E$11"))


    BTW, if your sheetname has any spaces in it, you'll need this version:

    =AVERAGE(INDIRECT("'"&A7&"'!$C$6:$E$11"))
    Last edited by JBeaucaire; 01-16-2009 at 07:11 PM. Reason: added second version
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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