+ Reply to Thread
Results 1 to 7 of 7

Help with Indirect Function

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Help with Indirect Function

    I am using Excel 2010 and I am trying to make a non-continuous list to be used in a drop down box. To my knowledge, the only way to do this is to create a name in the name manager and use the indirect function. I have two examples, the first one works, the second one does not. Is there any particular reason the second example does not work? Thank you in advance.

    This example works:
    =INDIRECT({"r12c2","r14c3","r15c2"},FALSE)

    This example does not work:
    =INDIRECT({"r12c"&(1+1),"r14c3","r15c2"},FALSE)

    I have also tried using concatenate() in place of the ampersand (&) and it also does not work. Concatenating text within the indirect function is pretty normal, so I do not see why this does not work.

    This is not the actual code I want to use, only a simplified example of the problem.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Help with Indirect Function

    Maybe you can this one.

    =INDIRECT({"r12c"&"(1+1)","r14c3","r15c2"},FALSE)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help with Indirect Function

    Did not work. The issue is with the text concatenation (the & symbol). Excel will not allow you to use that symbol in this context.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help with Indirect Function

    Try..

    ="r12c"&TEXT(1+1,0) instead
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    08-08-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help with Indirect Function

    Still did not work. The issue is with the text concatenation (the & symbol). For example, the following line does not work either:

    =INDIRECT({"r12c"&"2","r14c3","r15c2"},FALSE)

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help with Indirect Function

    In that case, how about...

    =INDIRECT(ADDRESS(12,1+1))

  7. #7
    Registered User
    Join Date
    08-08-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help with Indirect Function

    I tried:

    =indirect({address(12,1),address(14,3),address(15,2)})

    and it did not work. It gives me the generic "The formula you typed contains an error." message.

    There does not to me appear to be any reason this should not work, unless it is simply outside of the capabilities of Excel.

+ 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