+ Reply to Thread
Results 1 to 5 of 5

Compare columns and delete duplicates

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Compare columns and delete duplicates

    Hi Gents,

    Im new to this forum and need your help to resolve one requirement. I have 3 columns in a worksheet, where there are number of duplicates.

    I want to some technic/Macro to eliminate those duplicate comparing 3 columns which are important. I have attached a sample data and result i need .
    I sincerely hope some one will help for sure.

    Thanks much,
    -Eph
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Compare columns and delete duplicates

    Hello and welcome ephrahim,
    find the attached!
    FOrmulas used in the sheet 1 are array formulas you need to hold control and shift together and then hit enter to make it array formula again, in case you change anything or copy and paste it somewhere else.

    you also need to maintain conditional formatting to get the borders accordingly.
    In sheet 1 select A1 to E10 go to conditional formatting and check the formulas
    Attached Files Attached Files
    Last edited by hemesh; 10-24-2013 at 03:52 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Compare columns and delete duplicates

    Hi,

    I hope you have seen the result page, how to achieve it. I can remove the duplicate using the exisiting options in Excel, but how to remove in column 1 and column 2.

    Example: For Destination port(columnC), the formulae are showing 4 unique lines but there are only 3 unique Source IP-addresses in column A and B. How to remove that duplicate ????

    -Eph
    Last edited by ephrahim; 10-24-2013 at 08:27 AM. Reason: more clarity

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Compare columns and delete duplicates

    how you want to remove duplicate in column A and B what is the logic or criteria you are looking. Basically there are five unique values in column A and column B
    Column A has unique values at row 2,3,6,10,13 and column B has unique values at row 2,3,8,10 and 11

  5. #5
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Compare columns and delete duplicates

    Hi Hemesh,

    For example DNS 53 in column C, we have below records.

    Source address Destination address Destination Port Application IP Protocol
    192.168.1.2 192.168.250.10 53 dns udp
    192.168.1.3 192.168.250.20 53 dns udp
    192.168.1.6 192.168.250.10 53 dns udp
    192.168.1.6 192.168.125.33 53 dns udpou


    But if you see the column A, we could see duplicate value 192.168.1.6, Even in column B we could see duplicate value 192.168.250.10.

    I want those to be removed , i dont have any idea so im here sir.

    -Eph

+ 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. Compare two columns delete duplicates
    By camo090 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2013, 03:59 PM
  2. [SOLVED] Compare two columns-delete duplicates from just ONE column
    By dawsonsoo in forum Excel General
    Replies: 12
    Last Post: 06-05-2013, 09:42 AM
  3. Replies: 1
    Last Post: 05-06-2013, 06:28 AM
  4. Compare Two Columns Between Two Worksheets, keep duplicates, delete others, copy new
    By navyav8er in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2012, 03:59 PM
  5. Compare multiple columns and delete duplicates
    By labrooy in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-03-2011, 08:02 PM

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