+ Reply to Thread
Results 1 to 4 of 4

index match between the nth and nth +1 value

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    MS
    MS-Off Ver
    Excel 2007
    Posts
    12

    index match between the nth and nth +1 value

    Good Evening,

    I have a imported report that is pulling assembly part numbers into column b. In column a I have at random the word "Parent", This is the start of a new assembly. I would like to pull all the part numbers between the words parent and place them in column c. I have tried a verity of items to try and get it to go with out luck.

    This seemed to get me the code above and to the right of where I needed to be sometimes other times it was just out in space.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This was entered as an array Control, Shift, Enter.

    I have tried several different versions of this

    I have attached a sample file

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: index match between the nth and nth +1 value

    Try:

    =IFERROR(INDEX($B$1:$B$150,SMALL(IF($A$1:$A$150="parent",ROW($A$1:$A$150)),ROWS($A$1:A1))),"null")

  3. #3
    Registered User
    Join Date
    07-07-2011
    Location
    MS
    MS-Off Ver
    Excel 2007
    Posts
    12
    Quote Originally Posted by Phuocam View Post
    Try:

    =IFERROR(INDEX($B$1:$B$150,SMALL(IF($A$1:$A$150="parent",ROW($A$1:$A$150)),ROWS($A$1:A1))),"null")
    Thank you for the quick reply. That worked beautifully. Now tomorrow I'm off to figure out how to find the children part numbers.

    Chris

  4. #4
    Registered User
    Join Date
    07-07-2011
    Location
    MS
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: index match between the nth and nth +1 value

    Now I just don't know if I just can't see the forest from the woods. My mind is at a blank on how to find the children part numbers.

    I'm trying to think thru the logic. First define the upper limit parents and the lower limit parents. Then identify all the parts in between.

    I guess I need to figure out nth and nth +1 parents cell locations then place my index small to limit to that range?

    So in the sample #2 attached I need to use to find the defined 1st parent cell location
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This defines the upper and lower control limits.

    I need to now look at the data pulling.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I need what is between the parents. In the sample #2 file the cells in green are the number I would like to find. The numbers in yellow are the parents
    Attached Files Attached Files

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  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. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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