+ Reply to Thread
Results 1 to 8 of 8

Compare two cells then show result

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    N.Wales
    MS-Off Ver
    Excel 2010
    Posts
    63

    Compare two cells then show result

    Hi,

    I have cell A1 with an address "The Long Road".
    in Cell B1 I have part of the address "The Long"
    If this is the case I would like cell C1 to show nothing.
    If B1 doesn't have part of the address in it then C1 to show the full address that is in A1.

    Thank you for youtr help.

    Cheers

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two cells then show result

    Try in C1

    =IF(ISNUMBER(SEARCH(B1,A1)),"",A1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    N.Wales
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Compare two cells then show result

    Thank you for quick reply but this doesn't seem to work,

    Cheers

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two cells then show result

    You are welcome but works for me, in the way that you explained to us.

    If you mean something else maybe it's better to upload a small sample workbook, typing manually a few expected results..

  5. #5
    Registered User
    Join Date
    09-20-2011
    Location
    N.Wales
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Compare two cells then show result

    Please find attached,

    Cheers
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two cells then show result

    Ok.

    A slight modification.

    =IF(B1="",A1,IF(ISNUMBER(SEARCH(B1,A1)),""))

  7. #7
    Registered User
    Join Date
    09-20-2011
    Location
    N.Wales
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Compare two cells then show result

    Works a treat - thank you

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two cells then show result

    ......................

+ 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