+ Reply to Thread
Results 1 to 6 of 6

If Cell contains some text from another Cell, then return "True".

  1. #1
    Registered User
    Join Date
    10-21-2020
    Location
    United States
    MS-Off Ver
    Office 16
    Posts
    7

    Post If Cell contains some text from another Cell, then return "True".

    If A1 contains any text from B1, then return "True" in C1.

    For Example.
    A1 = 123_A
    B1 = 123

    A1 contains the "123" from B1, so it should return "True" in C1.

    I just need to know the formula to do this. I've attached an example sheet.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: If Cell contains some text from another Cell, then return "True".

    Hi.

    =ISNUMBER(SEARCH(B1,A1))

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If Cell contains some text from another Cell, then return "True".

    Hi
    Try this in C1:
    =IFERROR(IF(SEARCH(B1,A1)>0,TRUE),FALSE)

  4. #4
    Registered User
    Join Date
    10-21-2020
    Location
    United States
    MS-Off Ver
    Office 16
    Posts
    7

    Re: If Cell contains some text from another Cell, then return "True".

    Thanks, this gets it done.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: If Cell contains some text from another Cell, then return "True".

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    10-21-2020
    Location
    United States
    MS-Off Ver
    Office 16
    Posts
    7

    Re: If Cell contains some text from another Cell, then return "True".

    Thank you so much, this gets the job done!

+ 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. Formula for "true" or "false" based on whether or not a row has a color filled cell
    By the_red_engine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2021, 10:24 PM
  2. if cell A value matches a value in Range B, return "TRUE" in cell C
    By PUPIXCELLIUM in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2020, 07:51 PM
  3. [SOLVED] If statement that return "True" If a cell's date is the last day of a year.
    By Bobbbo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-21-2020, 07:54 PM
  4. [SOLVED] =IF(M4>=21,--TRUE(),"0") - need to return 0 from blank cell
    By E1137781 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2017, 04:16 AM
  5. Replies: 4
    Last Post: 10-05-2013, 10:11 AM
  6. Replies: 1
    Last Post: 10-10-2006, 12:51 AM
  7. If "text" exist within "cell" then TRUE
    By JemyM in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 09-16-2005, 07:41 PM

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