+ Reply to Thread
Results 1 to 8 of 8

comparing columns

Hybrid View

Rnash comparing columns 07-12-2010, 01:28 PM
NBVC Re: comparing columns 07-12-2010, 01:35 PM
Rnash Re: comparing columns 07-12-2010, 01:42 PM
NBVC Re: comparing columns 07-12-2010, 01:49 PM
Rnash Re: comparing columns 07-12-2010, 01:50 PM
NBVC Re: comparing columns 07-12-2010, 02:06 PM
Rnash Re: comparing columns 07-12-2010, 02:35 PM
NBVC Re: comparing columns 07-12-2010, 02:40 PM
  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Exclamation comparing columns

    I have a three column list.
    Column a is a unique number
    Column B contains an original list
    Column C contains the original list with corrections

    I need a formula to compare that B and C correspond.

    Here's an example:

    22687 ABBEY REGINA S REGINA S ABBEY

    There is probably a tip for this, but I can't seem to find it.
    Last edited by Rnash; 07-12-2010 at 06:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: comparing columns

    you mean?

    =B2=C2

    this will return TRUE if they are the same? (not case sensitive though).

    If you want case sensitive matching..

    =EXACT(B2,C2)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: comparing columns

    Well, the problem is that not all of the text string matches in the corrected. Is there a way to compare to make sure there is at least one of the words matches somewhere is the text for column C that is contained in column B.

    example:
    JOHNSTON PAUL L TRUSTEE became MAX D KENNEDY TRUSTEE

    Somehow, I lost the correction that should be Paul L Johnston Trustee

    So, I want to compare to make sure there is some match between the two columns like "johnston" appears in column B and either does or does not in column C

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: comparing columns

    So you just want to see that Johnston appears in C or not... so the first "word".

    It is not a simple task to see if any word in B is in string C or vice versa...

  5. #5
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: comparing columns

    Yes, it can be based on the "first" word in column B

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: comparing columns

    Then:

    =ISNUMBER(SEARCH(LEFT(B2,FIND(" ",B2)-1),C2))

  7. #7
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: comparing columns

    Didn't seem to work. this one still returned true:

    HURD E BERNARD JR there are not likeness: KERMIT G KALB TRUSTEE

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: comparing columns

    I got FALSE.. are you sure you are reference the correct cells?

+ 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