+ Reply to Thread
Results 1 to 8 of 8

Identify and replace row based on duplicate cell

  1. #1
    Registered User
    Join Date
    12-06-2022
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    5

    Question Identify and replace row based on duplicate cell

    I have an excel sheet that is being populated from a microsoft form. I have it sorting the data based on office location which is in column F. I need the sheet to automatically detect when two cells in column "G" are the same and replace the old row with the new one. Its drivin gme crazy!! haha. Thanks yall!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,944

    Re: Identify and replace row based on duplicate cell

    Sort your data so that the newer values are toward the top, then use Remove Duplicates on your table based on G. The older one (duplicated value lower on the sheet) will then have its entire row be removed.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    12-06-2022
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    5

    Re: Identify and replace row based on duplicate cell

    Hey Bernie, I like that way a lot, is there a way to have the excel sheet always looking for duplicates and sorting it based on G?

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Identify and replace row based on duplicate cell

    excel sheet always looking for duplicates and sorting it based on G?
    You may have an event macro fired when sheet is activated.
    How do you "Sort your data so that the newer values are toward the top" ?
    Send a short Excel sample for code test.
    - Battle without fear gives no glory - Just try

  5. #5
    Registered User
    Join Date
    12-06-2022
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    5

    Re: Identify and replace row based on duplicate cell

    Currently I am just using the auto sort feature, I haven't steered into the direction of macros yet, but an event macro every time its opened might be the easiest move.
    Of course if its a shared file it might not like that.

  6. #6
    Registered User
    Join Date
    12-06-2022
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    5

    Re: Identify and replace row based on duplicate cell

    So if there is a way for the sheet to auto sort and delete duplicates in shared folders that would be ideal. Even if i need to tie it to a button.

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Identify and replace row based on duplicate cell

    Can you send an EXCEL sample to prepare the job ?

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,944

    Re: Identify and replace row based on duplicate cell

    Since you are using 365, you can combine UNIQUE and SORT and a bunch of other functions to create a clean data set continuously. A lot depends on how you add your new data - if you do it methodically, then lots of options....

+ 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. Replies: 1
    Last Post: 05-26-2020, 02:08 PM
  2. [SOLVED] Identify duplicate groups of cell in column
    By ids in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2014, 09:33 AM
  3. Quick VBA Question: Identify a cell and replace it's value
    By AnArtfulDodger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2014, 12:45 PM
  4. [SOLVED] Delete rows based on duplicate cell, but leaving first and last duplicate.
    By LadyNicole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2013, 05:07 AM
  5. Replies: 1
    Last Post: 05-23-2012, 03:02 PM
  6. Replies: 1
    Last Post: 01-26-2012, 10:06 AM
  7. Duplicate Text within single cell. How to identify & split
    By TeRex82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2006, 03:35 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