+ Reply to Thread
Results 1 to 9 of 9

Formula or code to remove duplicate text or values within a cell

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Formula or code to remove duplicate text or values within a cell

    Formula or code to remove duplicate text with in a cell.

    I have a data in sheet with multiple columns and rows. Please find attached.
    Where most of the cells are contained duplicate or repeated text and values like all duplicate or repeated text and values are separated with “^”. I want to remove all the duplicate and repeated values with in a cell

    4BHK^4BHK

    Juhu^Juhu^Juhu^Juhu^Juhu^Juhu^Juhu

    60000^60000^60000

    17,647/Sq-ft^17,647/Sq-ft

    Prime property for lease: the apartment with 4 bedrooms, 3 bathrooms, dining and living and kitchen on 7th floor, with east west cross ventilation, excellent natural lighting and unrestricted view is available for lease with following amenities. 1.1495 sq. feet all rooms and kitchen tastefully finished with vitrified flooring 2. all 3 bathrooms finished with designer tiling and customized fittings and water heaters 3. kitchen with granite platform and piped gas connection 4. stilt car parking next to lift entrance.^Prime property for lease: the apartment with 4 bedrooms, 3 bathrooms, dining and living and kitchen on 7th floor, with east west cross ventilation, excellent natural lighting and unrestricted view is available for lease with following amenities. 1.1495 sq. feet all rooms and kitchen tastefully finished with vitrified flooring 2. all 3 bathrooms finished with designer tiling and customized fittings and water heaters 3. kitchen with granite platform and piped gas connection 4. stilt car parking next to lift entrance.



    Please note.

    * Only duplicate or repeated text and values separated by “^” should be removed. Non duplicated data (Eg. Given below) should not be removed

    10000000^1.0 Crore
    8500000^85.0 Lac

    * Also I will be adding rows and columns time to time. The formula or cde should be applicable to new rows and columns as well.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Formula or code to remove duplicate text or values within a cell

    try this way, insert a module and paste the following code into it:
    Please Login or Register  to view this content.

    Use it like: =UNIQ(F8;"^")
    [F8 is just an example, also you can change the delimiter if you need...]
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

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

    Re: Formula or code to remove duplicate text or values within a cell

    UDF

    Use in cell like

    =Uniq(A1,"^")

    Please Login or Register  to view this content.

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

    Re: Formula or code to remove duplicate text or values within a cell

    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)

    Please Login or Register  to view this content.

    =RemoveDup(A2)

    Drag it down...


    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

  5. #5
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Formula or code to remove duplicate text or values within a cell

    I tried it is not working. Can you please send me in sample fine attached
    Attached Files Attached Files

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

    Re: Formula or code to remove duplicate text or values within a cell

    See..................
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Formula or code to remove duplicate text or values within a cell

    Hi,
    Gr8.

    But it is not working for data like

    1) 156/Sq-ft^156/Sq-ft^156/Sq-ft^156/Sq-ft

    2) 10,000/Sq-ft^10,000/Sq-ft^10,000/Sq-ft^10,000/Sq-ft



    The Result is showing as 5439685 for 1st and 5792148 for 2nd

    The result should be 156/Sq-ft for 1st and 10,000/Sq-ft for second

    Please help

  8. #8
    Forum Contributor
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Formula or code to remove duplicate text or values within a cell

    Hey Sorry,

    Its working

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

    Re: Formula or code to remove duplicate text or values within a cell

    Should be....

+ 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. to remove duplicate text within a cell using formula.
    By tell_arshad in forum Excel General
    Replies: 4
    Last Post: 03-10-2015, 04:38 AM
  2. Replies: 3
    Last Post: 06-15-2014, 11:31 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. How to remove formula from creating duplicate values?
    By Climaxgp in forum Excel General
    Replies: 3
    Last Post: 12-14-2009, 03:04 AM
  5. [SOLVED] is there a formula that remove duplicate values from a range
    By Martin R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2006, 08:10 AM

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