+ Reply to Thread
Results 1 to 9 of 9

Find the last occurance of a cell's contents (contains) and copy it's data to another cell

  1. #1
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    384

    Find the last occurance of a cell's contents (contains) and copy it's data to another cell

    I have a example spreadsheet attached where I need a formula to look at the list and find the last occurrence of the text string "Nice Stuff", "Real stuff" and "Good stuff" but can contain numbers in the cell such as "12345 Nice Stuff"copy the data to the right of the cell and paste it into cell D8 for "Real Stuff" D9 for "Nice Stuff" and D10 for "Good Stuff" all in the other workbook tab named "MapTo". I know how to pick up the first occurrence but not the last occurrence.

    I know where the first enter is on the worksheet (D7), but the list length will vary.

    I used the array formula of
    Please Login or Register  to view this content.
    found in cell D8 of the MapTo tab that mikerickson a of Davis CA a Forum Guru, but the requirements have changed from an exact match to "Contains"


    Help would be greatly appreciated
    Attached Files Attached Files
    Last edited by Bobbbo; 05-18-2017 at 08:20 PM. Reason: added attachment

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    cannot see attachment
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    384

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    Quote Originally Posted by humdingaling View Post
    cannot see attachment
    Good catch, I forgot you "upload" it!

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    not sure why this needed an xlsm file but anyway...

    my problem is "Nice 12345 Stuff"
    cause then really you are looking for nice and stuff separately...which would mean having to break down every cell by space to find a combination of the two words?
    probably doable but a bit beyond me if you really want that type of solution

    for the rest of them

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

  5. #5
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    384

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    humdingaling,

    Thanks for the thoughts and formula. I will think over the problem and see if there may be a change in requirements that could make the formula simpler

    Get back to you tomorrow!
    Last edited by jeffreybrown; 05-19-2017 at 07:57 PM. Reason: Please do not use full quotes as per the forum rules!

  6. #6
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    384

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    Hi hundingaling, It appears that I still need to have the formula deal with a number being in the middle as well. Any ideas from anyone would be appreciated.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    it depends highly on the format on what you are trying to search

    For your specific example..this should work

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

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    Another option:

    Please Login or Register  to view this content.
    Quang PT

  9. #9
    Forum Contributor
    Join Date
    04-05-2010
    Location
    Lakewood, IL
    MS-Off Ver
    Excel 2016
    Posts
    384

    Re: Find the last occurance of a cell's contents (contains) and copy it's data to another

    Quote Originally Posted by bebo021999 View Post
    Another option:

    Please Login or Register  to view this content.
    Hi bebo021999, Thanks for the help. In the actual list the length of the list is not defined meaning it can be a little as one row or as much as 10,000 rows. Can you change the formula to account for that?

+ 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. Find the last occurance of a cell's contents and copy it's data to another cell
    By Bobbbo in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-18-2017, 09:23 AM
  2. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  3. Find highest value in a column and then copy contents of another cell in that row
    By peakoverload in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-19-2014, 10:26 AM
  4. Find all occurance of cell value from another work book
    By diyaoct in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2011, 03:40 PM
  5. Find the 1st occurance of a number in a cell
    By lovemuch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2006, 08:05 PM
  6. [SOLVED] Data entry - Copy contents of cell typed in one cell to another ce
    By danie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 02:55 PM
  7. copy a cell's contents into find dialogue box
    By tommeyer in forum Excel General
    Replies: 1
    Last Post: 01-18-2005, 03:40 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