+ Reply to Thread
Results 1 to 8 of 8

Nested MID formula in Index Match?

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    germany
    MS-Off Ver
    2013
    Posts
    26

    Nested MID formula in Index Match?

    HI.

    I am trying to nest a MID argument into an Index Match formula. Basically, Index match isnt an issue, the returned value is a string of numbers in a cell seperated by "-" for example 1234-56-789-1234 I need to split the returned value into four cells as opposed to returning the complete value. Any suggestions on how i should go about this?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Nested MID formula in Index Match?

    The easiest way would be to use 5 cells instead of 4, with the index / match formula in the first, then the remaning 4 to split it.

    With the index formula in A2, try this in B2, then drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-23-2015
    Location
    germany
    MS-Off Ver
    2013
    Posts
    26

    Re: Nested MID formula in Index Match?

    Hi Jason.

    Thanks, but unfortunately that isnt an option. Im restricted to just the four columns/cells.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Nested MID formula in Index Match?

    In that case, you would need to replace each of the references to $A1 in the formula with your existing index match formula.

    All of the column references in the index match parts of the formula must be absolute, rows can be relative if required. If you need more help in combining the formulas, then I will need your index match formula to work with.

  5. #5
    Registered User
    Join Date
    03-23-2015
    Location
    germany
    MS-Off Ver
    2013
    Posts
    26

    Re: Nested MID formula in Index Match?

    Thanks,

    formula is:
    =IFERROR(INDEX('501'!A:A,MATCH(L618,'501'!B:B,0)),"")

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Nested MID formula in Index Match?

    I think that I have this right, I would suggest changing the reference to $B2:B2 (in red) to the cell that you enter the formula into. This is to prevent the formula failing if anyone uses right click - delete.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The formula uses a lot of exact matches with entire columns, so calculation could be a bit slow. Using smaller ranges in the formula would be advisable here, you don't need to evaluate over 1 million rows of data if you only ever have a maximum of 1000 used.

  7. #7
    Registered User
    Join Date
    03-23-2015
    Location
    germany
    MS-Off Ver
    2013
    Posts
    26

    Re: Nested MID formula in Index Match?

    Works perfectly! Thank you so much, was more complicated than i was expecting though.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Nested MID formula in Index Match?

    That is the downside of not being able to use an extra cell.
    If you look back at the shorter version in post #2, you will notice that $A2 is referred to 5 times, without the luxury of that extra cell holding the index match formula, we have to replace each of those 5 references with the full index match formula.

    There are ways that the formula could be simplified, but at the risk of sacrificing accuracy, particularly if the number of digits in each part of your number is variable.

+ 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. [SOLVED] Concatenate with nested index/match + if statements formula
    By heyjackierenee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2019, 07:05 AM
  2. [SOLVED] index match...possibly nested if formula question
    By tomolsen in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-01-2018, 11:50 AM
  3. Formula for Pivots - INDEX/MATCH, Nested IF
    By eNinjaInTraining in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2018, 06:11 PM
  4. Trouble with nested index match formula
    By jamesplant77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2016, 10:44 AM
  5. Nested IF Index Match formula reached limit. Suggestions?
    By patrickt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2015, 03:04 AM
  6. Help with nested Index Match formula
    By LilSisKin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-09-2013, 06:10 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