+ Reply to Thread
Results 1 to 4 of 4

Can't understand this INDIRECT formula

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    Tulsa, Oklahoma USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Can't understand this INDIRECT formula

    Hello Excel Wizards! I have a tough question. I'm working with a former colleague's spreadsheet and it is FULL of this formula:

    =INDIRECT("'"&A10&"'!c7") (exactly as typed)

    It appears that this formula is trying to reference a cell or something, as the INDIRECT function does, but I cannot figure out what the ref_text or logical value is in this formula.

    Please help. If you need more info or clarification, I'll try my best to give it.

    Thanks!!
    Last edited by NBVC; 05-05-2011 at 02:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: HELP! Can't understand this INDIRECT formula

    The person is referencing cell A10 which should contain a sheetname in the workbook and then it pulls whatever is in C7 from that sheet.

    See here: http://www.contextures.com/xlFunctions05.html#RefSheet
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    Tulsa, Oklahoma USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Can't understand this INDIRECT formula

    Ah! The double quotations are used to make the reference a SHEET NAME! I see it now (i think). Man, does this help a lot. Thank You Very Much!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Can't understand this INDIRECT formula

    A sheetname in a formula is usually referred to like this:

    Sheet1!

    If the sheet name contains multiple words you need to enclose in single quotes like:

    'Sheet One'!

    The single work can also take the single quotes: 'Sheet1'!

    in the formula above, it is concatenating a single quote, the string in A10 and then another single quote. The double quotes around the single quote is simply defining the single quote as a text string and on the other side it combines the single quote that closes the sheetname, along with the ! that defines it as a sheetname and the cell reference... and that is all hard-coded... the only variable being A10.

    So it takes " ' " & A10 & " '!C7"

+ 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