+ Reply to Thread
Results 1 to 2 of 2

Return Cell of nth Match

  1. #1
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Post Return Cell of nth Match

    Hi all,

    I hope you don't mind but I am going to ask for 2 results in this thread for similar formulas.


    1. This formula I found works great for returning the nth value in a single column (in this example second match):

    =INDEX('Table 1'!$A$1:$A$3000,SMALL(IF('Table 1'!$A$1:$A$3000="Done",ROW('Table 1'!$A$1:$A$3000)),2))

    However, can some please edit the formula so that the searched cells contain "Done", not the whole cell reference (eg. cell A15=xxxDoneYYYzzz)



    2. Similar, this formula works well and returns the desired cell reference. Can you tell me how to edit the formula to find the nth match in the column.

    =CELL("address",INDEX('Table 1'!$A$1:$A$3000,MATCH("*"&"Done"&"*",'Table 1'!$A$1:$A$3000,0)))


    Thank you so much

    Danny

  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,152

    Re: Return Cell of nth Match

    Try

    =INDEX('Table 1'!$A$1:$A$30,SMALL(IF(ISNUMBER(SEARCH("Done",'Table 1'!$A$1:$A$30)),ROW('Table 1'!$A$1:$A$30),""),3))

    =CELL("Address",INDEX('Table 1'!$A$1:$A$30,SMALL(IF(ISNUMBER(SEARCH("Done",'Table 1'!$A$1:$A$30)),ROW('Table 1'!$A$1:$A$30),""),3)))

    Array entry (Ctrl+Shift+Enter)

    OR

    =INDEX('Table 1'!$A$1:$A$30,AGGREGATE(15,6,ROW(A1:A30)/(ISNUMBER(SEARCH("Done",'Table 1'!$A$1:$A$30))),2))
    Last edited by JohnTopley; 04-26-2022 at 02:40 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. INDEX MATCH then return first non-blank cell *above* resulting cell
    By moun10addict in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2022, 12:39 AM
  2. [SOLVED] Trying to compare one cell with a list of cells and return data in adjacent cell on match
    By possumbarnes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2019, 10:41 AM
  3. Replies: 6
    Last Post: 05-22-2019, 11:29 PM
  4. Replies: 8
    Last Post: 06-25-2014, 05:43 AM
  5. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  6. Replies: 6
    Last Post: 09-18-2012, 10:43 AM
  7. Match cell to cell on another worksheet to return all relevant rows
    By denise6372 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2012, 12:55 AM

Tags for this Thread

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