Results 1 to 4 of 4

Thread: If Lookup Index Match pulling back #Value

  1. #1
    New Member
    Join Date
    Sep 2019
    Location
    Moist Brittania
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy If Lookup Index Match pulling back #Value

    Hi all, quite an involved one here so please bear with me.

    Working at a company trying to rectify their orders. They have a weekly report that they are seeking a comparator on, to see the changes. Because so many of their orders are very similar, I have taken their data and had to create a field for a concatenated URN: Concatenate(A,B,C,D)

    on a processing sheet, I then have a list of these URNs from the week 1 and week 2 sheets in columns A and B, using =IFERROR(SOB_ThisWeek[URN],"") and =IFERROR(SOB_LastWeek[URN],"") respectively.

    In column C, I wanted to find all the Duplicate values, and ended up with the array formula:
    {=IFERROR(INDEX($A$2:$A$1499,SMALL(IF(COUNTIF($B$2:$B$1499,$A$2:$A$1499)>0,ROW($A$2:$A$1499)-1,9999999999),ROW()-1)),"")}

    In D, I wanted *all* URNs and after an hour of swearing, I found:
    {=INDIRECT(TEXT(MIN(IF(($B$2:$B$1324<>"")*(COUNTIF($D$1:D1,$B$2:$B$1324)=0),ROW($2:$1324)*100+COLUMN($B:$B),7^8)),"R0C00"),)&""}

    All good so far. With this, I was able to pull up all the *none-duplicate* values with a sneaky =IF(ISNA(MATCH(D2,Dupes,0)),D2,"") in column E

    If you are still with me, I love you, because here's the actual issue:

    Column F, I am trying to pull back the 'A' value for that URN. Because I don't know if this URN is for the current or previous week, I am trying to perform an index match based on the value that the none-duplicate column has returned:

    =IF(LOOKUP($E2,$A:$A),INDEX(SOB_TW[Part],MATCH(TRUE,INDEX(SOB_TW[URN]=$E2,0),0)),INDEX(SOB_LW[Part],MATCH(TRUE,INDEX(SOB_LW[URN]=$E2,0),0)))

    I have tried this both arrayed and none-arrayed, and this is off the back of attempting a Vlookup in the same style, but where the none-duplicate column has returned a value, the formula returns a #Value !

    Any help greatly appreciated. (and yes, this thing does take like 5 mins to run the full series of calculations - It's a once a week report, so boss is not too fussed)

    Best,

    Morgan

  2. #2
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Location
    Bountiful, UT
    Posts
    8,716
    Post Thanks / Like
    Mentioned
    44 Post(s)
    Tagged
    5 Thread(s)

    Default Re: If Lookup Index Match pulling back #Value

    I haven't tested this, but maybe something like:

    =IFERROR(INDEX(SOB_TW[Part],MATCH($E2,SOB_TW[URN],0),INDEX(SOB_LW[Part],MATCH($E2,SOB_LW[URN],0))
    Cheers,
    Eric

    When you eliminate the impossible, whatever remains, however improbable, must be the truth.

    -Posting guidelines, forum rules, terms of use, FAQs, BB codes, See how to search the forum
    -Post a screen shot with the HTML Maker

  3. #3
    New Member
    Join Date
    Sep 2019
    Location
    Moist Brittania
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If Lookup Index Match pulling back #Value

    Eric, you have the best brain. It required some parenthesis jiggery pokery, but it works wonderfully. IOU one cuppa.

    Best,

    Morgan

  4. #4
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Location
    Bountiful, UT
    Posts
    8,716
    Post Thanks / Like
    Mentioned
    44 Post(s)
    Tagged
    5 Thread(s)

    Default Re: If Lookup Index Match pulling back #Value

    Glad you got it working!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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