{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["Remove repeated text","RemoveDupeWords","RemoveDupeChars"],"not_rendered":{"charts":0,"images":4,"macros":1,"external_links":0,"defined_names":0,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Remove repeated text","index":0,"n_rows":22,"n_cols":3,"rows_kept":22,"cut":false,"hidden":false,"merged":[[3,1,3,8],[8,2,8,3],[5,1,5,8]]}
[]
[]
[]
[null,"Sample Workbook to Remove Duplicates in Cell"]
[]
[null,"The workbook shows how to remove repeated characters and text strings from a cell by using a user-defined function or a macro."]
[null,"Author","Ablebits.com"]
[null,"Last update","2021-03-29"]
[null,"Tutorial URL","How to remove duplicates within a cell in Excel"]
[]
[null,"The workbook contains the following macros:"]
[null,"RemoveDupeWords2 - remove repeated text from selected cells. Note, the macro uses a comma and space for the delimiter.  To use a different delimiter, replace \", \" with another character(s) in the code."]
[null,"RemoveDupeChars2 - remove duplicate characters from selected cells."]
[]
[null,"How to use the macros:"]
[null,"1. Keep this workbook open."]
[null,"2. Open your own workbook in which you want to remove duplicates."]
[null,"3. In your workbook, press Alt + F8, select the desired macro, and click Run."]
[]
[null,"Examples of user-defined functions:"]
["• ","RemoveDupeWords function to remove duplicated words"]
["• ","RemoveDupeChars function to remove duplicate characters"]

{"sheet":"RemoveDupeWords","index":1,"n_rows":18,"n_cols":9,"rows_kept":18,"cut":false,"hidden":false,"merged":[]}
["Source data","Result"]
["apple, orange, apple, pear, orange, apple",{"$f":"RemoveDupeWords(A2, \", \")","v":"apple, orange, pear"}]
["Ava, Emma, Emma, Ava, Ava",{"$f":"RemoveDupeWords(A3, \", \")","v":"Ava, Emma"}]
["01, 02, 03, 01, 01, 02",{"$f":"RemoveDupeWords(A4, \", \")","v":"01, 02, 03"}]
["1-aa, 1-aa, 1-AA, 1-Aa, 2-AA, 2-aa, 3-aA",{"$f":"RemoveDupeWords(A5, \", \")","v":"1-aa, 2-AA, 3-aA"}]
[null,null,null,null,null,null,null,null," "]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[null,null,null,null,null,null,null," "]

{"sheet":"RemoveDupeChars","index":2,"n_rows":6,"n_cols":8,"rows_kept":6,"cut":false,"hidden":false,"merged":[]}
["Source data","Result"]
["abcadcab",{"$f":"RemoveDupeChars(A2)","v":"abcd"}]
["abcABCadc",{"$f":"RemoveDupeChars(A3)","v":"abcABCd"}]
["012013014",{"$f":"RemoveDupeChars(A4)","v":"01234"},null,null,null,null,null," "]
["a1b2cA3B1C3a1c",{"$f":"RemoveDupeChars(A5)","v":"a1b2cA3BC"}]
["01*02*03/04/05-06",{"$f":"RemoveDupeChars(A6)","v":"01*23/45-6"}]