Results 1 to 3 of 3

Thread: Indirect

  1. #1
    3 Star Lounger
    Join Date
    Nov 2005
    Location
    Asia Pacific, Bangkok Metropolis
    Posts
    378
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Would someone enlighten me on what does the ' in this formula represent?

    =INDIRECT("'"&$A2&"'!"&B$1)

    the formula return the value in B1 of both Sheet2 and Sheet3 on Sheet1, B2
    Hope this is helpful

    francis, <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

    My Reading

    Pivot Table 101
    Pivot Table
    Array

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Let's say that A2 contains the text January Sales, and that B1 contains the text K37.
    The formula then evaluates to
    =INDIRECT("'January Sales'!K37")
    which is equivalent to
    ='January Sales'!K37
    This returns the value of cell K37 on the sheet named January Sales.
    The single quotes (apostrophes) are used around the sheet name; they are required if the sheet name contains spaces or unusual characters. If the sheet name is a single word, the single quotes aren't required but they won't hurt either.

  3. #3
    3 Star Lounger
    Join Date
    Nov 2005
    Location
    Asia Pacific, Bangkok Metropolis
    Posts
    378
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='782263' date='29-Jun-2009 14:10']Let's say that A2 contains the text January Sales, and that B1 contains the text K37.
    The formula then evaluates to
    =INDIRECT("'January Sales'!K37")
    which is equivalent to
    ='January Sales'!K37
    This returns the value of cell K37 on the sheet named January Sales.
    The single quotes (apostrophes) are used around the sheet name; they are required if the sheet name contains spaces or unusual characters. If the sheet name is a single word, the single quotes aren't required but they won't hurt either.[/quote]

    Hi Hans

    Thanks for the explantion
    Hope this is helpful

    francis, <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

    My Reading

    Pivot Table 101
    Pivot Table
    Array

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •