+ Reply to Thread
Results 1 to 7 of 7

Find cell content based on character containing in the cell and value in another column

  1. #1
    Registered User
    Join Date
    12-01-2020
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    4

    Find cell content based on character containing in the cell and value in another column

    Hello

    I need help please to find (to be showed in $H3) the last data entry in a cell of a column called "Tests Done" (Column $E ) containing a specific character (defined in $H2) for an product list in column called "Batch#" (Column C) with ID value defined in $H1. Also to find the previous cell value under the same conditions (to be showed in $H4).

    Thanks for your help and support
    Regards
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find cell content based on character containing in the cell and value in another colum

    In H3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-01-2020
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Find cell content based on character containing in the cell and value in another colum

    PERFECT !!!!!! Many, many thanks you.... Any hint how to formulate the second question: find (to be showed in $H4) the previous to the last data entry in a cell of a column called "Tests Done" (Column $E ) containing a specific character (defined in $H2) for an product list in column called "Batch#" (Column C) with ID value defined in $H1.

    I really appreciate your help.....Thanks again.
    Best Regards
    Juan Serrallonga

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find cell content based on character containing in the cell and value in another colum

    If you drag/copy that down, it will show the next to last, then 3rd from last, etc.

  5. #5
    Registered User
    Join Date
    12-01-2020
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Find cell content based on character containing in the cell and value in another colum

    Hello ChemistB

    Thank you for your prompt answer, but I need the previous value in the cell where both condition are satisfied. the previous cell that contain the character specified in $H2, corresponding with the product from the column $C called Batch# specified in $H1. If I do what you suggest , I just get the previous contiguous cell to the original found it. I will appreciate any hint to solve this question. To illustrate my problem I manage a list of products (identified by batch#, what I call 111,222,333,etc) I have to test for different methods (that is what I call b1,b2,b3,,etc), what I need is being able to retrieve the more recently list of test done that contains a specific test, like "b1" for example, for a specific batch# and also find the tests performed before the last one, that also contain the specific "b1" test. That in my excel spreadsheet could happen a year before, so you can see how useful could be to get the previous value for that particular Batch#. Thanks again and Best Regards
    Juan

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find cell content based on character containing in the cell and value in another colum

    Not sure I'm following. I have attached your example workbook with my formula giving the correct answer in H3 and H4. Can you set up a new example giving what you would expect and why? Thanks
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-01-2020
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Find cell content based on character containing in the cell and value in another colum

    Hello ChemistB

    You are right, is working perfectly... I appreciate your help. Best Regards
    and Merry Christmas.

+ 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] Macro to rename cell content based on the starting character until found same character
    By oeyandyprawira in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2015, 09:36 AM
  2. [SOLVED] multiple find and replace cell content based on another cell
    By betatony in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2014, 03:07 PM
  3. multiple find and replace content based on another cell
    By betatony in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2014, 09:59 PM
  4. [SOLVED] Searching for Cell Content Larger than Find Function's Character Limit
    By spira in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2012, 08:59 PM
  5. [SOLVED] How to find the exact cell content in a column
    By yeshwant_sur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 02:13 AM
  6. find and replace - based on 3 character in adjacent cell
    By isabella in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-24-2010, 08:51 PM
  7. Find a cell, based on a reference and input a character
    By Joshua@work in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2010, 02:24 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