+ Reply to Thread
Results 1 to 4 of 4

find last occurrence of a non-exact text string in unsorted table and return next column

  1. #1
    Registered User
    Join Date
    02-19-2012
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    7

    find last occurrence of a non-exact text string in unsorted table and return next column

    I found a question (not from me) and response in a 2011 forum:

    A B
    1 WINE PH
    2 Chard 3.24
    3 Merlot 3.36
    4 Cab 3.44
    5 Merlot 3.38
    6 Chard 3.26
    7 Chard 3.45
    8 Cab 3.41
    9 Merlot 3.33

    =LOOKUP(2,1/($A$1:$A$9="Chard"),$B$1:$B$9) that returns the value in column B for the LAST occurrence of a text string "Chard" in column A of an unsorted table (returns 3.45)

    This Lookup() formula works well if looking for an exact match (i.e., "Chard"), but I have a slightly different need: I am looking for the last cell in column A that INCLUDES the text string, not an exact match and not case-sensitive ("e.g. "Swiss Chard", "chard", "Charder", etc) of an unsorted table and want to return the corresponding value from column B (which in my case happens to be a date). Lookup() apparently doesn't like wildcards because using "*Chard*" doesn't work. Help.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: find last occurrence of a non-exact text string in unsorted table and return next colu

    Try something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    02-19-2012
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: find last occurrence of a non-exact text string in unsorted table and return next colu

    Absolutely! Works! Love you guys!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: find last occurrence of a non-exact text string in unsorted table and return next colu

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

    ...BTW: If anybody in this forum is ever particularly helpful, you can thank them by clicking the "Add Reputation" star under one of their posts.

+ 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] Find last occurrence of text in a column and return value in next column
    By LindaLu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2014, 09:45 AM
  2. [SOLVED] Find highest value in unsorted column and return data of other cell
    By vergrootglas in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-07-2012, 11:56 AM
  3. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  4. Replies: 0
    Last Post: 07-29-2011, 08:44 AM
  5. Replies: 2
    Last Post: 07-23-2010, 10:19 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