+ Reply to Thread
Results 1 to 13 of 13

Delete duplicate cells?

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Delete duplicate cells?

    Hi!

    I've got about 1500 cells in a column and many of them contain duplicates. Is it possible to delete these duplicate rows? Each cell has a cell to the right of it that needs to be deleted along with it. The formula HAD to be case sensitive.

    Thanks!

    //Tina, Sweden

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

    Re: Delete duplicate cells?

    Tina;
    You have two options:
    1. On the ribbon, find the Delete Duplicates Icon and follow the wizard.
    2. Insert the following macro


    Please Login or Register  to view this content.


    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    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 Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Re: Delete duplicate cells?

    The Visual Basic Editor won't open when I press Alt + F11. It gives me a "ding"-sound.

    I tried the delete dupicates, but it's not case sensitive, unfortunately.

  4. #4
    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,893

    Re: Delete duplicate cells?

    Make sure that you don't have any cells on your spreadsheet open in Edit mode and try again.

  5. #5
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Re: Delete duplicate cells?

    No, I've got nothing open.

    Excel.jpg

  6. #6
    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,893

    Re: Delete duplicate cells?

    Ok. Looks like you don't have the Developer Tab on your ribbon visible. On the file tab, click on Options. On the Popular selection, look for the "Show Developer Tab in the Ribbon" and click on the checkbox. Save and Close the options.

    Now on the Developer Tab on the far left is an Icon "Visual Basic". Click on it and it should open the VBE.

  7. #7
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Re: Delete duplicate cells?

    Thanks!

    But this is so weird. It won't let me open Developer tag! It's grey!

    Weird.jpg

  8. #8
    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,893

    Re: Delete duplicate cells?

    Appears that your IT dept may have disabled all Visual Basic Application parts of your program. I am going to post this in another section of the forum for others to look at and see if they have seen this before and maybe have a solution. Check with your IT department and see if this is something they did.

  9. #9
    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,893

    Re: Delete duplicate cells?

    I just found this link that may apply in your case:

    http://www.excelforum.com/excel-prog...-disabled.html

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Delete duplicate cells?

    The reason is that the VBA - Macro Part is not installed in that OP's Machine.

    Upto 2003 the office macros (VBA) are getting installed in default, but in the later versions of 2003 microsoft made it as Optional at the time of installing the Ms-Office.

    A simple method to know whether the macros is installed or not:-

    View>>Macros>>Select the Drop Down>>If everything is showing as disabled then surely no VBA part installed at the time of installation.

    Re-installing the Office by way of selecting the VBA part will be the only solution in this case


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  11. #11
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Re: Delete duplicate cells?

    I got it to work! (By uninstalling and reinstalling Word). Thank you so much for your help, Sixthsense and alansidman!

    The macro deleted everything except for the first row, though.

  12. #12
    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,893

    Re: Delete duplicate cells?

    Can you upload a sample workbook to test. I have use that VBA for years and it has always worked for me. I would like to test with your data.

  13. #13
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    153

    Re: Delete duplicate cells?

    It worked! I tried it again today and I probably did something different than last time, cause now it worked perfectly! Thank you SO much for all your help! (I'm adding some reputation right now). I really appreciate your kindness! Thank you! :D

+ 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. [SOLVED] Please I need a macro to delete duplicate cells in a several selected cells in Excel?
    By amkoloui in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-15-2014, 02:17 PM
  2. [SOLVED] delete duplicate values in same cells [for now...]
    By ggsmit in forum Excel General
    Replies: 2
    Last Post: 05-28-2013, 11:25 AM
  3. Delete duplicate cells and more....
    By Elegidos in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-09-2009, 04:56 AM
  4. [SOLVED] How do I delete duplicate cells?
    By AYANG in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 01:30 AM
  5. would like to delete duplicate cells
    By jd in forum Excel General
    Replies: 3
    Last Post: 07-01-2005, 02:05 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