+ Reply to Thread
Results 1 to 5 of 5

Check if a cell contains a part of the other cell

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2007
    Posts
    2

    Check if a cell contains a part of the other cell

    Hi all,
    I had been using the =Vlookup function to check if some numbers in one cell exactly appears on another cell. But now again I have numbers in one cell, but now the other cell has some text prefix (like tcn-12). When I use ctrl+f and search 12, excel finds that cell containing 12 (tcn-12). But using Vlookup, excel doesn't recognize 12 in the tcn-12 cell.
    Is it possible to find the numbers, in the text-prefixed cells, and get those cells painted? (even if I can find them is enough for me)

    Thank you very much in advance,
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Check if a cell contains a part of the other cell

    How about..

    =IFERROR(VLOOKUP("*"&number&"*",Range,1,FALSE),"")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Check if a cell contains a part of the other cell

    Hi, thanks for the comment, but I couldn't actually figure out how to put my data into your formula this time, I'm not so familiar with excel formulas, sorry.
    =IFERROR(VLOOKUP(B:B;A:A;1;0)) what I'm trying to do is getting the column B looked up at column A, but of course this formula gives an error. can you please explain it more specificaly, sort of dummy version

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Check if a cell contains a part of the other cell

    Something like this..

    See Column H
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003/2007
    Posts
    182

    Re: Check if a cell contains a part of the other cell

    Hi,

    Try the attached file and also check the conditional formula. L and M column is newly created based on which conditional formula is given in J column. You can modify it accordingly.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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