+ Reply to Thread
Results 1 to 5 of 5

Indirect references in Array formulae

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Indirect references in Array formulae

    This array formula in cell B2 retruns the first match on a string (in A2)from a list of keywords - "ListA" (named range ($F2$F100))

    {=IFERROR(INDEX(LISTA,MATCH(1,COUNTIF(A2,"*"&LISTA&"*"),0)),"")}

    I want to use the result that I get from above formula as a named range to look up the corresponding row and get the first match that list on the

    {=IFERROR(INDEX(SUM(INDIRECT(B2)),MATCH(1,COUNTIF($A2,"*"&SUM(INDIRECT(B2))&"*"),0)),"")}

    For Eg:
    If B2 gives me a result "Fruits", I want to use it as a named range (which I have already defined - Fruits: $G$2:$J$2) to get the first match on cell A2.

    Keyword range
    F2:F100 - LIST A
    G2:J100 - Corresponding data based on ListA in each row Eg: F2 = Fruits G2:J2 = Apple, Orange, Grapes, Plum

    But the second formula does not give any any result. Is there a workaround for this?

    Appreciate your help
    Note: I cannot upload files from here
    Last edited by ninsine; 05-30-2013 at 09:18 AM. Reason: Sp correction to Formulae

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Indirect references in Array formulaa

    Hi,

    Haven't looked in great detail, but my first question would be to ask you why you have the SUM portion of your second formula; passing this to INDEX I suspect will not give you the desired result. Perhaps it should be:

    {=IFERROR(INDEX(INDIRECT(B2),MATCH(1,COUNTIF($A2,"*"&INDIRECT(B2)&"*"),0)),"")}

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Indirect references in Array formulae

    I had tried that. But was getting error message that "Excel ran out of resources.......". I added it so that excel wont update the range when columns are inserted.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Indirect references in Array formulaa

    ?? It's INDIRECT that will prevent Excel from updating range references when e.g. columns are inserted, not SUM!

  5. #5
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Indirect references in Array formulaa

    My bad..I was thinking otherwise.

+ 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