+ Reply to Thread
Results 1 to 3 of 3

Mark repeating field

  1. #1
    Registered User
    Join Date
    12-27-2008
    Location
    Port Moody, BC
    Posts
    2

    Mark repeating field

    Hi: I have a list of energy consumption records by address. The utility that supplied the data had to manually pull each record one by one from their 'database'. If two individuals shared one account, the record is repeated.

    So, I have a 500,000 row table with some records with identical addresses and identical consumption amounts. How would I go about separating the duplicates (to then delete them)?

    It's sorted by address then consumption. The logic is...

    if the address value in column A repeats and the consumption field in column B also repeats, then...(place a marker in column C so I can sort and delete)

    Thanks!!

    Doc
    Last edited by NBVC; 12-28-2008 at 12:04 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Assuming you are starting in row 2, then try, in C2

    =Sumproduct(($A$2:$A2=$A2)*($B$2:$B2=$B2))

    Then copy down the formula.

    This counts number of times the two columns items exist side by side starting from top to row you have the formula in...

    So you would delete all that return a number greater than 1 for those would be duplicates.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-27-2008
    Location
    Port Moody, BC
    Posts
    2
    Thanks so much! happy holidays!

+ 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