+ Reply to Thread
Results 1 to 5 of 5

VBA code to remove duplicates without shifting cells

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    West Sussex, England
    MS-Off Ver
    Office 365
    Posts
    30

    VBA code to remove duplicates without shifting cells

    Hi there, I have text data in a spreadsheet from call A1 to BA100. The table contact a series of product codes with various information in adjacent calls under certain headings. Many of the cells replicate some information.

    I need to remove duplicates without shifting the cells.

    I have tried to create a macro with no luck and don't want to use a formula as the table is already massive.

    Many thanks

  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,872

    Re: VBA code to remove duplicates without shifting cells

    what do you mean by without shifting the cells. Clear the contents of the cells, maybe?

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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
    Registered User
    Join Date
    09-15-2014
    Location
    West Sussex, England
    MS-Off Ver
    Office 365
    Posts
    30

    Re: VBA code to remove duplicates without shifting cells

    I've attached a before and after sample. Yes ideally remove duplicates and make the cell blank. Remove the duplicate and every other duplicate.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: VBA code to remove duplicates without shifting cells

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: VBA code to remove duplicates without shifting cells

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Excel 2003 vba Add and remove from listbox shifting cells up when removed
    By Ditch1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2017, 11:26 PM
  2. Code to remove duplicates based on a criteria
    By twizy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2014, 10:18 AM
  3. Remove Duplicates code help
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 01:15 PM
  4. Formula or VBA code to remove duplicates
    By james19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2014, 05:15 AM
  5. [SOLVED] Find Duplicates and add columns while shifting the cells up
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2013, 09:07 AM
  6. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM
  7. Remove Duplicates Code
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-18-2011, 04:36 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