+ Reply to Thread
Results 1 to 4 of 4

Search beginning from last match

  1. #1
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151

    Search beginning from last match

    I found this post on another board and it accurately describes what I am looking to do... any takers? I've been trying combinations of offset, with the address function + row and I just cant get it right. Thank you for your time.

    Is there any way to do something like this...
    Please Login or Register  to view this content.
    Say that returns a value of 3. The match is in the 3 row from A4, or A7
    Now I want to do a match again starting at A8
    Please Login or Register  to view this content.
    Basically I want to start the search array over again starting off where the last one was found + 1

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Search beginning from last match

    =MATCH(1, OFFSET(A4:A80, MATCH(1, A4:A80, 0), 0):OFFSET(A4:A80, 76, 0), 0)

    Messy, but non-volatile.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    10-04-2006
    Posts
    151

    Re: Search beginning from last match

    Hi, thank you for your time.

    In my struggles with this, I have actually come up with this function....

    Please Login or Register  to view this content.
    Woah! This is one of the longest functions I have constructed in Excel thus far (yipee!) Unfortunately, it doesn't work. I get a N/A value returned. Why is this?

    What I am trying to do is take data (W2) which is matched up with information in another column (R1:R2001) -this data is actually contrived from a formula which pulls from column A - get the address (from W1 match) and have it offset from that address to find the next match in (W2).... and then offset from that address to pull the desired information....

    I have this formula, which works great

    Please Login or Register  to view this content.
    The trick is starting another search from the address value of the formula above...

    Make sense?... I hope... Thanks...
    Last edited by NewExcelUser; 01-29-2009 at 02:04 AM. Reason: Added Info

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Search beginning from last match

    And you tried the formula I provided, but ... what?

+ 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