+ Reply to Thread
Results 1 to 6 of 6

Find duplicate rows involving 2 columns with column 2 criteria

  1. #1
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Find duplicate rows involving 2 columns with column 2 criteria

    Hi

    I would appreciate your input in identifying the same entry in column A that in column B has entries that are not zero or blank.

    THEN

    A. Use conditional formatting to highlight those records (highlight A and B column)
    and beginning in A46
    B. List the duplicates and count number.

    Thanks

    edit: ALSO include a formula for number of duplicate records, in this case 1.
    (Excel 2002)
    Attached Images Attached Images
    Last edited by drgkt; 12-17-2015 at 06:47 PM.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Find duplicate rows involving 2 columns with column 2 criteria

    are you wanting this one time? or are you wanting to have an auto-updating output that updates when the list updates?

    i would just use a pivot table based on your data.
    put column A in the Rows section, count of column A in the Values section, and filter column B for everything that isn't blank. Then filter your count of column A to only list entries with a count greater than 1.
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: Find duplicate rows involving 2 columns with column 2 criteria

    Thanks, but I am not looking for pivot. And no, it does not have to auto update. Thanks.

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Find duplicate rows involving 2 columns with column 2 criteria

    if you are not needing it to auto-update, then i am not sure why you would be opposed to a pivot table solution.
    without any sample data uploaded, and with a pivot table solution not being possible, I can only give you the steps I would use.

    1. Copy the entire contents of column A to a new column ( let say column F).
    2. highlight this new column and remove duplicates.
    3. insert the following formula in g1 and drag down: =COUNTIFS($A$1:$A$7,F1,$B$1:$B$7,"<>"&"")
    4. sort by column g, and delete the rows where the formula only returns 1 (only one entry).


    if you have issues, I suggest uploading a sample workbook so a solution can be provided for you right in the excel file.

  5. #5
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Find duplicate rows involving 2 columns with column 2 criteria

    Uploaded file

    COUNTIFS not supported in 2002
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Find duplicate rows involving 2 columns with column 2 criteria

    trying to do this without formulas available in excel 2003 and beyond is..... well, beyond me.
    but I did it two seconds in a pivot table. now all you have to do is.
    1. replace the data in your list of mock data with real data.
    2. change the range of the pivot table data source to extend to your whole data set.
    3. copy over the entries with a total greater than one from the pivot table to your list.

    you'll need someone else's help with the conditional formatting, as all the formulas I would use are not available to you.
    I suppose one way would be to create an if statement that returns true if:

    the entry in column A exists in your duplicate entry table, and the value in column B is >0

    I added that to the file, and hopefully that works.
    Attached Files Attached Files

+ 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] COUNTIF involving criteria from 2 different columns?
    By FlareChan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-22-2020, 01:35 AM
  2. [SOLVED] Index Match with multiple criteria involving find text
    By 3345james in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2015, 11:56 AM
  3. [SOLVED] Find non-duplicate rows between columns Name and Tag
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2014, 06:04 AM
  4. Find duplicate rows where value of cell with time criteria is within 30 mins
    By emm8080 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2013, 02:43 PM
  5. VBA code to find duplicate values within multiple rows and columns
    By pcbpinoy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2011, 09:04 PM
  6. How to find duplicate rows where columns contain data of different types
    By olechkq in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2010, 01:18 PM
  7. Replies: 2
    Last Post: 03-27-2010, 12:43 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