+ Reply to Thread
Results 1 to 6 of 6

Selecting the remainder of rows where 2 columns are selected

  1. #1
    Registered User
    Join Date
    01-16-2023
    Location
    Wyoming
    MS-Off Ver
    Office 365
    Posts
    4

    Selecting the remainder of rows where 2 columns are selected

    I'm a total Excel newb and need help doing something I suspect is very easy for someone that knows what they are doing. I'm taking a huge number of rows and finding duplicates and simply (I hope) to just C&P them into a new sheet.

    I have a set of spreadsheets I have to go through and find duplicates. I didn't know where to start so I searched around and found "Ablebits" The information in columns A and B are the where necessary info is for finding the duplicates that I'm looking for. Ablebits did find the duplicates and I chose for "Selecting" the information instead of highlighting.

    Now that I have the duplicates selected (Either A or B or both qualifies a duplicate on a row, most are both with a few exceptions) I need to now figure out how to select the rest of the various column info in the selected rows. I can't do it manually because this is roughly 1 million rows I need to go through.

    Is there some equation or way to select the rest of the info in the selected rows?

    The way these sheets are setup I have A through M and Ablebits has already found the duplicates in A and/or B. The reason that only 1 column is selected on rare occasions is further down the sheet that info is a match. Normally it's both A and B though.

    Is there and easier way to find duplicates? Ablebits is working fine and it's very fast so I tend to like this method of finding the duplicate info in those two columns I just can't seem to figure out how to complete selecting the rest of the info on each selected row so I can copy then paste all of this into a new spreadsheet. I know this is a repeat basically of what I posted above but I'm just trying to be thorough.

    I included a sample to show you what I'm talking about.


    Appreciate any help!

    Regards

    Tim
    Attached Files Attached Files
    Last edited by DuckmanUS; 01-16-2023 at 04:04 PM.

  2. #2
    Registered User
    Join Date
    01-16-2023
    Location
    Wyoming
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Selecting the remainder of rows where 2 columns are selected

    I guess after looking at the title of this it should have been "Selecting the remainder of Cells in a row where 1 and/or 2 are selected"

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Selecting the remainder of rows where 2 columns are selected

    One way via formula to indicate which rows are duplicated, would be this in N2:

    =OR(COUNTIF(A:A,A2)>1,COUNTIF(B:B,B2)>1)

    Drag the formula down column N.

    You can then filter column N to only show TRUE.
    You will be left with rows where there is a duplicate in column A or in column B.

  4. #4
    Registered User
    Join Date
    01-16-2023
    Location
    Wyoming
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Selecting the remainder of rows where 2 columns are selected

    That did work but I have to copy only the TRUE's so I can paste them in a new sheet. In the end I need a separate copy of all of the duplicates. How can I do this? I didn't even know how to do your formula so I got a little help lol. Anyone know how I can do this part? I really appreciate it!

    Also, How can I drag that formula down without having to hold it below the bottom border? Each sheet has approx 50K rows so It takes a long time to drag it to the bottom. Is there way to drag it down so it does it quickly to the last entry on the page or is that the only way to do it?
    Last edited by DuckmanUS; 01-16-2023 at 05:45 PM.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Selecting the remainder of rows where 2 columns are selected

    Copy and paste the formula from post #3 into cell N2, hit Enter, then double-click the bottom right corner of the cell with the formula in it (cell N2) that you use to drag it down, to automatically drag the formula down column N.

    Now filtering column N to show only TRUE's, you can then copy/paste only the TRUE's into a new sheet, thus only showing duplicates in that new sheet.
    Last edited by 63falcondude; 01-17-2023 at 12:17 PM.

  6. #6
    Registered User
    Join Date
    01-16-2023
    Location
    Wyoming
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Selecting the remainder of rows where 2 columns are selected

    I appreciate it Falcondude! All of that works great...Just had to find the filter selection thingy

+ 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. Selecting the same rows from different columns
    By zippy333 in forum Excel General
    Replies: 1
    Last Post: 11-07-2019, 02:45 PM
  2. VBA - Selecting all cells in specific columns from selected rows
    By mrichardson.music in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-26-2018, 07:59 AM
  3. Help with selecting columns and rows to copy..
    By paulbaker321 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2012, 02:37 PM
  4. Selecting rows of selected cells
    By jdskin2 in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 04:34 PM
  5. selecting only certain rows based on other columns' rows!!!
    By Nitu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2008, 03:33 PM
  6. Replies: 2
    Last Post: 11-15-2006, 11:04 PM
  7. Selecting rows or columns at warp 6!!
    By mkingsley in forum Excel General
    Replies: 6
    Last Post: 01-13-2006, 12:30 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