+ Reply to Thread
Results 1 to 5 of 5

Find last row in column with matching text and return contents

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Find last row in column with matching text and return contents

    I have a log sheet where data is transferred into and part of the cell value contains $C$3 for example, the following formula I found returns the first matching cell, how can I modify the formula to return the last matching cell in column A.
    This is the formula that I have
    Please Login or Register  to view this content.
    Thanks for any assistance

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find last row in column with matching text and return contents

    One way would be a helper column B
    B2 copied down: =IFERROR(FIND($M$1,A2),"")

    Then your formula would be
    =INDEX(A2:A20,MATCH(9^99,B2:B20),1)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find last row in column with matching text and return contents

    Maybe try

    =lookup(1,-search(C3,A2:A20),A2:A20)

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find last row in column with matching text and return contents

    ...is the cell in question a formula which contains the $C$3 treference, e.g. =E3+$C$3
    or is the $C$3 some literal text.

    Uploading a workbook would help

  5. #5
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Re: Find last row in column with matching text and return contents

    Thanks Richard & Bo-Ry both your formulas worked, I will mark this 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. Replies: 3
    Last Post: 07-17-2020, 01:15 PM
  2. Replies: 27
    Last Post: 06-06-2014, 05:30 PM
  3. Replies: 2
    Last Post: 09-07-2013, 07:50 PM
  4. [SOLVED] Find matching value in a row and return column name
    By suton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 05:58 PM
  5. Replies: 2
    Last Post: 04-11-2013, 11:14 AM
  6. find matching value and return data from previous column
    By mheinmiller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2009, 12:36 PM
  7. Find matching value and return text
    By Raoul Duke in forum Excel General
    Replies: 3
    Last Post: 02-14-2008, 01:30 PM

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