+ Reply to Thread
Results 1 to 8 of 8

How do I remove duplicate numbers from a cell?

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    How do I remove duplicate numbers from a cell?

    Each line represents one cell in a row in my sheet
    I want to remove the duplicates.

    Thank you in advance.

    FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00526, FW00527, FW00527, FW00527, FW00527, FW00527, FW00527, FW00527
    FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW03866, FW03866
    FW00722, FW00722, FW00722, FW00722, FW00723, FW00723, FW00723, FW00723, FW00749, FW00749, FW00749, FW00749, FW00749, FW00756, FW00756, FW00756, FW00756, FW00757, FW00757, FW00757, FW00757
    FW00727, FW00727, FW00727, FW00738, FW00738, FW00738, FW02015, FW02015
    FW02105, FW02105, FW02105, FW02105, FW02105, FW02105, FW02105, FW02105, FW02105, FW02105, FW02423, FW02423, FW02423, FW02423, FW02610, FW02610, FW02610, FW02610, FW02610, FW02610, FW02610, FW02610
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How do I remove duplicate numbers from a cell?

    StreekyD,

    Your profile says Excel 2010 and you've uploaded an .xls file. Is backwards compatibility to be considered? There are limitations to this file format. One of them is a lower restriction on the number of nested functions.

    If I can do this in .xls at all (formula-wise) I will likely need to use many helper columns. Otherwise a VBA solution may be your best bet. I am not currently VBA proficient.

    What would you like to do?
    Last edited by FlameRetired; 11-18-2015 at 12:28 AM.
    Dave

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How do I remove duplicate numbers from a cell?

    Hi StreekyD,

    Here is how to accomplish this wih VBA:
    from http://www.extendoffice.com/document...string.html#a2

    1. Copy code below
    2. Press Alt and F11 on your keyboard to open VB Editor
    3. Click on Insert and select Module
    4. Paste code into Module and close VB Editor.

    Don't forget to save your worbook as Macro-Enabled workbook.

    Please Login or Register  to view this content.
    then use this custom formula (UDF) =RemoveDupes(A1) to get unique values
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: How do I remove duplicate numbers from a cell?

    Thank you for the response.
    So when I save stuff in excel what format should I save it in?
    I use MS Office 10

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How do I remove duplicate numbers from a cell?

    Quote Originally Posted by StreekyD View Post
    Thank you for the response.
    So when I save stuff in excel what format should I save it in?
    I use MS Office 10
    Go to File, Save As, where Save as type: Excel Macro-Enabled Workbook (*xlsm)

  6. #6
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: How do I remove duplicate numbers from a cell?

    Hello, Yes I did that and put the module in the VB editor.
    I am unsure as to what to do with the formula and where to put it.
    I have over 1000 rows.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How do I remove duplicate numbers from a cell?

    Enter formula in B1 and copy down

    =RemoveDupes(A1)

    Data Range
    A
    B
    1
    FW00526, FW00526, FW00526, FW00526, FW00527, FW00527, FW00527, FW00527, FW00527
    FW00526, FW00527
    2
    FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW02510, FW03866, FW03866
    FW02510, FW03866
    3
    FW00722, FW00722, FW00723, FW00723, FW00749, FW00749, FW00749, FW00756, FW00756, FW00757
    FW00722, FW00723, FW00749, FW00756, FW00757
    4
    FW00727, FW00727, FW00727, FW00738, FW00738, FW00738, FW02015, FW02015
    FW00727, FW00738, FW02015

  8. #8
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: How do I remove duplicate numbers from a cell?

    OMG, its that easy
    Thank you so much!!!!!!

+ 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. Remove Blank cell and duplicate value
    By Rashidul in forum Non English Excel
    Replies: 1
    Last Post: 09-04-2015, 01:35 PM
  2. Trying to remove duplicate text within a cell
    By ThatDamnRedhead in forum Excel General
    Replies: 11
    Last Post: 12-12-2014, 08:50 AM
  3. Remove duplicate text from a cell
    By Ezabel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2014, 11:27 AM
  4. Remove Duplicate numbers
    By bzenker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2012, 04:55 PM
  5. remove duplicate text within a cell
    By vitetor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2011, 04:24 PM
  6. Remove duplicate text in cell
    By jboomer in forum Excel General
    Replies: 7
    Last Post: 11-10-2009, 04:58 PM
  7. [SOLVED] How do you remove duplicate phone numbers in an Excel spreadsheet
    By Bridgette in forum Excel General
    Replies: 1
    Last Post: 05-25-2006, 03:45 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