+ Reply to Thread
Results 1 to 6 of 6

Problem with Indirect Function

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    United States
    MS-Off Ver
    2007
    Posts
    18

    Talking Problem with Indirect Function

    Hey guys. So I've got my indirect function as such: =INDIRECT("P"&(2+3)). Naturally, this will return the value in cell P5. Which it does.

    My problem is that I want it to return the value in P5 on sheet 2. However, when I revise my function to look like this: =Sheet2!INDIRECT("P"&(2+3)), it returns an error function. So does this: =INDIRECT((Sheet2!)"P"&(2+3)).

    Does anybody have any ideas on how to correct this error?
    Last edited by Totoro318; 01-25-2013 at 02:51 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Problem with Indirect Function

    Try this... =INDIRECT("Sheet2!P"&(2+3)).

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Problem with Indirect Function

    Try this:

    =INDIRECT("Sheet2!P"&(2+3))

    - Moo

    djapigo snuck it in nanoseconds before me...

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Problem with Indirect Function

    totoro, whenever I have a problem sorting out an indirect() formula, i 1st create the formula in the normal way. Then i "text" it by adding ' in front of the =, so I can see what it is supposed to look like.

    Then I play around with indirect() in the formula editor until it shows me what i need
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    11-13-2012
    Location
    United States
    MS-Off Ver
    2007
    Posts
    18

    Re: Problem with Indirect Function

    Thank you guys, you were all incredibly helpful.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Problem with Indirect Function

    Glad to help, and thanks for the feedback.

    - Moo

+ 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