+ Reply to Thread
Results 1 to 6 of 6

Compare a1 with entire column and return TRUE in b1

  1. #1
    Registered User
    Join Date
    11-14-2011
    Location
    Dusseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    97

    Compare a1 with entire column and return TRUE in b1

    Hello,

    I an excel file, with two Sheets.

    So in Sheet1 I have Results in column A and the same thing in Sheet2. Some of them are the same.
    I want to compare each of the cells in A column of Sheet1 with all cells in A column of Sheet2 and return "True" to B column of Sheet1. Plus Columns C, D and E should be cleared.

    Please see the attached example of how the result should look.

    Thank you in advance.
    Attached Files Attached Files
    Last edited by yiannis1925; 12-13-2011 at 05:19 AM.

  2. #2
    Registered User
    Join Date
    11-14-2011
    Location
    Dusseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Compare a1 with entire column and return TRUE in b1

    Some help really needed )))

    thank you

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compare a1 with entire column and return TRUE in b1

    Hi yainnis1925
    Try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-14-2011
    Location
    Dusseldorf, Germany
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Compare a1 with entire column and return TRUE in b1

    Hello,

    This seems to work perfect! thank you very much!
    Just one request, is it possible to TRIM Sheet1 and Sheet2 before starting the comparison ?

    Thank you once more!

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Compare a1 with entire column and return TRUE in b1

    as an option. see attachment
    Attached Files Attached Files

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compare a1 with entire column and return TRUE in b1

    Hi yainnis1925

    Regarding this
    is it possible to TRIM Sheet1 and Sheet2 before starting the comparison
    Try this code
    Please Login or Register  to view this content.

+ 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