+ Reply to Thread
Results 1 to 7 of 7

Comparing two columns & showing identical values

  1. #1
    Registered User
    Join Date
    02-05-2016
    Location
    Bengaluru
    MS-Off Ver
    7
    Posts
    4

    Comparing two columns & showing identical values

    I have two columns. One column has values for 2600 rows and the other has values in 1000 row. I need to compare these two columns & the values appearing in both the columns are to be shown in third column.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Comparing two columns & showing identical values

    Assuming columns are A - C and theres a header row

    In C2 enter the following

    Please Login or Register  to view this content.
    And then drag down
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Comparing two columns & showing identical values

    Quote Originally Posted by Sham Sundar View Post
    I have two columns. One column has values for 2600 rows and the other has values in 1000 row. I need to compare these two columns & the values appearing in both the columns are to be shown in third column.
    Hi,

    Please find the attached file.

    This is using a helper column.

    Assuming the two columns with values are in A and B, use the formula for helper column :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And then to get the matching values column, use the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Assuming helper column is C


    Regards
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Comparing two columns & showing identical values

    pls attach a sample file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Comparing two columns & showing identical values

    Assuming A & B column have data then.

    Try

    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with control+Shift+Enter. and drag down.

    Check the attached file.
    Last edited by shukla.ankur281190; 10-18-2016 at 07:05 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Comparing two columns & showing identical values

    or can try
    Please Login or Register  to view this content.
    change range reference as per your needs

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Comparing two columns & showing identical values

    Try this...

    Data Range
    A
    B
    C
    D
    1
    1
    1
    1
    2
    2
    4
    4
    3
    3
    5
    5
    4
    4
    8
    8
    5
    5
    12
    13
    6
    6
    13
    7
    7
    30
    8
    8
    32
    9
    9
    40
    10
    11
    11
    13
    12
    15
    13
    17
    14
    20
    15
    25
    16
    ------
    ------
    ------
    ------


    This array formula** entered in D1:

    =IFERROR(INDEX(B:B,SMALL(IF(ISNUMBER(MATCH(B$1:B$9,A$1:A$15,0)),ROW(B$1:B$9)),ROWS(D$1:D1))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Consolidating identical data to new sheet and showing different values attached
    By dlevisay in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2016, 03:39 PM
  2. Pivot table showing / comparing information from multiple columns
    By NiranNiran in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-25-2015, 11:00 AM
  3. Look up identical values in two seperate columns
    By nature718 in forum Excel General
    Replies: 1
    Last Post: 03-20-2014, 06:52 PM
  4. Replies: 2
    Last Post: 11-06-2013, 02:17 AM
  5. Comparing 2 WB's with identical rows and columns, then Hightlight the differences
    By crispybadger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2013, 05:17 PM
  6. Comparing two columns of data that are near identical
    By Shaunclippo in forum Excel General
    Replies: 1
    Last Post: 01-21-2008, 02:16 PM
  7. [SOLVED] Comparing values and showing %
    By Piotr in forum Excel General
    Replies: 1
    Last Post: 03-14-2005, 09:06 AM

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