+ Reply to Thread
Results 1 to 7 of 7

Nested IF/THEN with INDEX MATCH and return LEFT value

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Nested IF/THEN with INDEX MATCH and return LEFT value

    Okay I can only get this to partially work (cell B5 on attached doc) and I've tried to modify it like in cell B6 but its not returning anything.
    I only want the LEFT three characters to return based on the data entered in B1, and B2 then looked up against the Table in Columns H, I, J.

    Any help is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    I Should read requirement!!
    Last edited by JohnTopley; 04-17-2018 at 11:40 AM.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    Try this in B5:

    =IFERROR(SUBSTITUTE(INDEX(J$2:J$19,INDEX(MATCH(B$1&"_"&B$2&A5,H$2:H$19&I$2:I$19,0),0))," A","")+0,"")

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    in B5
    =IFERROR(LEFT(INDEX($J$2:$J$19,SMALL(IF((B$1&"_"&B$2=$H$2:$H$19),ROW($A$2:$A$19)),ROW(A1))-(ROW(A$2)-1),1),3),"")
    Array formula, use Ctrl-Shift-Enter
    and copy down to B10
    Last edited by Special-K; 04-17-2018 at 11:44 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    Or

    =IFERROR(INDEX(LEFT($J2:$J100,3),,MATCH($B$1&"_"&$B$2&$A5,H2:H100&I2:I100,0)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  6. #6
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    you all rock.....i now see the error in my ways! see what i did there. your help is so greatly appreciated everyone!

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Nested IF/THEN with INDEX MATCH and return LEFT value

    Glad we could help. Thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-26-2017, 04:46 PM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. Using LEFT, MID, or RIGHT within VLOOKUP or INDEX/MATCH/MATCH
    By eszeein2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-05-2016, 03:38 PM
  4. [SOLVED] INDEX/MATCH? - Return Value to left with IF function
    By macrav in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2014, 04:05 PM
  5. [SOLVED] Index + Match to return result with Left function
    By Groovicles in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2014, 02:35 PM
  6. Replies: 4
    Last Post: 03-27-2014, 01:09 PM
  7. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM

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