+ Reply to Thread
Results 1 to 6 of 6

Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Michigan,USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    Hello and thanks for any help you can provide.

    I have searched and tried for two days now for a formula that can do the following. Then I wrote this and realized that I probably need a macro to do this.

    I have a spread sheet that is 90,000 rows, with multiple columns. It has multiple functions, sales orders and deliveries and so on. I need to sort data based off two of the columns, to filter out repeat orders.

    The two columns have repeating part numbers and prices. I have parts with multiple pricing. I need to find the common ones and filter or delete not sure of that step right now.

    Example….
    B3 = 5 C3 = $.0064

    I need to find and flag the rows that have the same data in the B and C column. Then move to the next row and check it against all rows.

    If it doesn’t match anything don’t flag it, if it does match, flag what it matches and not itself.

    Flag it by placing an (X) in column (A) of the matching row, then if there is an (X) at the beginning of the row do nothing and move to the next row.

    I attached a file with a simplified format of what I need sort. Work sheet.xlsx

    Thanks again,

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    Hi KHurt,

    Try this :

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Open a macro-enabled Workbook or save your Workbook As Macro-Enabled

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

    Press ALT + F8 then double click on the macro name

    BTW - the sample had Columns C And D - so the code is for those Columns!
    Last edited by xladept; 05-01-2013 at 08:56 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    My solution about the same as the previous poster.

    Just click the "Find and Flag" Button.

    Worksheet - modified.xlsm

  4. #4
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    90,000 rows?? try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-01-2013
    Location
    Michigan,USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    Thanks every one for your help.

    Your solutions work great, saved me hours of work and lots of headaches.

    I learned something new from each and every one of you. Thanks again.

    Regards,
    KHurt

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find exact match in multiple columns in 1 row with all other rows 90,000 rows.

    You're welcome!

+ 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