Results 1 to 12 of 12

Remove duplicate lines based on another cell field

Threaded View

  1. #1
    Registered User
    Join Date
    10-02-2023
    Location
    Lisbon
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    5

    Remove duplicate lines based on another cell field

    Hi there!

    Im fairly new in Excel, although capable of some formulas and Data tools hacks, but theres a problem that I cant seem to find a solution for either online or with friends.
    I have a database of candidates applying to my company stores. The database is already close do 10.000 lines and, as usual, there are some duplicates (people that apply more than once, etc). When Im looking for candidates to a specific store location, I simply filter the database in the City column and pick the candidates.
    Ideally, I would want only one line for one specific individual, except when, for example, Jack wants to apply for a store in Washington and also in Denver. Therefore, either I filter Washington or Denver, Jacks name is going to come up.

    I already have the Highlight Duplicate Values in the phone number, and if I go with Remove Duplicates Im solving the duplicates problem HOWEVER Im damaging this last example, losing a candidate for Denver just because he already had a line for Washington.

    (see databse example attached)

    I try to do it manually and order the list from candidates unique ID number, highlight duplicates and manually delete lines where the candidate has selected the same city (a pure duplicate). But with close to 10.000 lines its tiresome.
    As the example below of the real database structure (but with false contacts) Im looking for a solution that can automatically delete the latest of the Richard Plumber lines (because it has the same city and its a pure duplicate) BUT keep both of Jack Kent lines, because although his personal information is the same, hes applying for two cities and I have to keep both entries.


    I guess Im looking for a way to automate the deletion of a repeated line with the same phone number only if the cell in the City field is the same, and keep it if its different. Is there a way to automate this?
    Attached Files Attached Files
    Last edited by rickpd; 10-04-2023 at 04:43 AM. Reason: Solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro to remove duplicate lines and correct the data 2 columns
    By excel_rooki in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2023, 12:24 PM
  2. [SOLVED] Remove duplicate date lines in cells
    By brentjohn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2018, 01:48 PM
  3. [SOLVED] Remove duplicate values in Field cell from same column
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2016, 01:40 AM
  4. [SOLVED] Remove lines based on cell value (remove lines in range, not entire row)
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-27-2015, 07:31 AM
  5. splitting one sheet into several others based on a field, how to get rid of lines
    By Suzanne Hawkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2015, 06:30 PM
  6. Average lines based on field?
    By rmwork in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-13-2013, 03:54 PM
  7. remove duplicate lines, but not delete rows
    By loade in forum Excel General
    Replies: 3
    Last Post: 09-26-2011, 01:12 AM

Tags for this Thread

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