+ Reply to Thread
Results 1 to 20 of 20

Remove duplicate inside the cells

  1. #1
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Remove duplicate inside the cells

    Hi Masters.

    I am stuck with a problem. I have large data set and inside the cell there are too many duplicate values. I have solved this through formula but it take too much calculation time.

    Suppose A1=11:21 11:21 11:21 11:29

    Result B1=11:21 11:29

    With helper column and formula it can solved but I suppose can it done with power query ?
    Cheers
    Ankur

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,754

    Re: Remove duplicate inside the cells

    I think you have been around long enough to know that we need a sample workbook!!!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    Ali, My friend asked this query me and i have gave his the solution through formula but he has very large data set, so formula solution take a long calculation time.

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    1
    Data Result Helper 1 Helper 2 Helper 3 Helper 4 Helper 5 Helper 6 Helper 7 Helper 8 Helper 9
    2
    11:21 11:21 11:21 11:29 11:21 11:29 11:21 11:29
    3
    15:56 15:56 23:57 23:54 23:37 23:37 15:56 23:57 23:54 23:37 15:56 23:57 23:54 23:37
    4
    15:56 15:55 23:57 23:57 23:37 23:37 15:56 15:55 23:57 23:37 15:56 15:55 23:57 23:37
    5
    15:56 15:56 23:57 23:57 23:37 23:35 15:56 23:57 23:37 23:35 15:56 23:57 23:37 23:35
    Sheet: Sheet1

    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,754

    Re: Remove duplicate inside the cells

    That's fine. Please attach a sample workbook.

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Remove duplicate inside the cells

    Maybe use VBA? Give this UDF a try.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    Ok The sample is attached. I suppose that power query can done this query.
    Attached Files Attached Files

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    VBA is the last option for my friend, he said. He suppose to do it done with solution of other tool like power query ?

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Remove duplicate inside the cells

    B2
    Please Login or Register  to view this content.
    May be some one come with simple formula
    The above will work up to 10 unique numbers
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    It is not working Siva

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Remove duplicate inside the cells

    sure, is that what you want?

    for a quick.... without finesse
    Attached Files Attached Files

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    Sandy can you explain it step by step so that I can learn it, I saw your many solution through power query. What is the source to learn it ?

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Remove duplicate inside the cells

    Quote Originally Posted by shukla.ankur281190 View Post
    It is not working Siva
    See the attached file
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Remove duplicate inside the cells

    Wait a minute, I need coffee (sleepless night

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Remove duplicate inside the cells

    Ok,
    How to load and split - you know
    • because you've 4 rows so you need duplicate 1st table 4 times
    • Change type will be added automatically, sometimes it is annoyed
    • Transpose each Table to get rows to columns and now you've each source row transposed to column but each value is in separated row not together
    • because you cannot remove duplicates from Table like this (it doesn't work correctly in this case, believe me ) you'll need single column for each table. Of course first column for first table, second column for second table etc...
    • after that you can remove duplicates from these single columns in all tables


    so far so good
    • because you want result in rows so transpose each table again
    • now Append Queries as new (will be clearly) all 4 tables (add from left to right window in order Table1, Table1 (2), etc...
    • then you've 4 columns separated but you need all together so Merge columns (select all columns then merge) with space separator, chasnge name Merged to your own
    • close&load as connection

    • after that select cell where you want your result table will start
    • right click on the Append table in Queries window
    • select Load to..
    • select Table
    • select Existing worksheet (or new if you wish)
    • ok

    I hope I did not miss anything

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Remove duplicate inside the cells

    Sources:
    https://support.office.com/en-us/art...9-c6d29cb8df6a

    https://support.office.com/en-us/art...rs=en-US&ad=US

    Google

    Books /E-books

    and of course tests, tests, tests.... and tests again

    I would not be myself if I did not add

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.
    Last edited by sandy666; 03-28-2018 at 06:33 AM.

  16. #16
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    Sandy If don't create duplicate and work on only single query, it is working good. I am surprised when I do add more data power query don't work? Can you please let me know hey it is happening ?

  17. #17
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Remove duplicate inside the cells

    Have a look at this attached file.

    I have created on one query, I does exactly what I was wishing but after loaded the query, when I do add more data and refresh the query It doesn't work ?
    Attached Files Attached Files

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Remove duplicate inside the cells

    Quote Originally Posted by sandy666 View Post
    • because you cannot remove duplicates from Table like this (it doesn't work correctly in this case, believe me ) you'll need single column for each table. Of course first column for first table, second column for second table etc...
    • after that you can remove duplicates from these single columns in all tables
    you didn't read my "description" post

    you removed whole duplicated rows not duplicated values, ops wrong - you selected single column and remove dups, this what is duplicate in one column is not a duplicate in second and so on....

    1 | 2 | 3
    1 | 3 | 4
    1 | 5 | 6

    if you remove duplicates from first column you will stay with single row

    btw. with new row of data you'll need add duplicate of first table and do the same what you did for the first four
    like I said in post#10 : quick.... without finesse
    Last edited by sandy666; 03-28-2018 at 07:25 AM.

  19. #19
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Remove duplicate inside the cells

    shukla.ankur281190

    For the formula of the colleague nflsales To work it is necessary to press CTRL + "SHIFT" + ENTER, it works perfectly

    Decio

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Remove duplicate inside the cells

    @shukla.ankur281190

    Ok, here is a simpler solution

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] How to remove duplicates separated by a comma inside cells in excel?
    By R12345 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2018, 08:52 PM
  2. Replies: 3
    Last Post: 04-26-2017, 08:01 PM
  3. Remove duplicate cells in a row
    By horhif in forum Excel General
    Replies: 1
    Last Post: 04-14-2017, 10:38 AM
  4. Remove duplicate WORDS from within cells
    By smuglovsky in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2013, 06:14 PM
  5. [SOLVED] Remove duplicates inside the cells (with criteria)
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2012, 12:22 PM
  6. How to remove both duplicate and corresponding cells
    By Adam845 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-20-2012, 03:14 PM
  7. How to remove horizontal lines from inside table cells?
    By Reema in forum Word Formatting & General
    Replies: 4
    Last Post: 07-20-2009, 04: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