+ Reply to Thread
Results 1 to 5 of 5

delete duplicate Values in a row

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    53

    delete duplicate Values in a row

    I can not figure out how to delete duplicate values that exist withing a row.
    each row is it own data-set I could use the option to transpose a row to a column then remove the duplicates then transpose back to a row but that would take weeks since I am dealing with 30,000 rows and each row consists of 50 - 500 cells with values.

    any VB or macro options to do this?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: delete duplicate Values in a row

    Show us a sample worksheet that is representative. When you delete the duplicate, do you mean to delete the cell or just delete the contents of the cell.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: delete duplicate Values in a row

    This might help.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    01-06-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: delete duplicate Values in a row

    Works Perfectly when it's removing the Duplicates but is does not delete the blank cell.

    Also, is it possible that the code could be converting a cell with a Formula to actual ? I had cells with =A2&B2&"Part_No"&C2 and it converted them to the actual value.
    if so, can I change the code to include a range I2:WO2000 ?

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: delete duplicate Values in a row

    Like this.

    Please Login or Register  to view this content.
    What do you mean by deleting ? Do you want the other values to shift to the left if a cell is empty (duplicate removed)

+ 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. Add values from duplicate rows and delete duplicate
    By jane204 in forum Excel General
    Replies: 3
    Last Post: 11-20-2016, 08:36 AM
  2. Macros to delete entire duplicate row for duplicate values
    By cutelebel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2014, 12:09 PM
  3. [SOLVED] sum duplicate values then delete
    By a.hudrea in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2014, 02:05 AM
  4. Delete duplicate values from cells containing multiple values
    By Buzzed Aldrin in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-03-2014, 02:50 PM
  5. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  6. [SOLVED] Delete duplicate values and mantening unique values
    By ronald coletto in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 02:19 PM
  7. [SOLVED] Sum Duplicate values then delete duplicate rows
    By keekdapolak in forum Excel General
    Replies: 7
    Last Post: 09-20-2012, 02:57 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