+ Reply to Thread
Results 1 to 15 of 15

Remove duplicate values of sets of data vertically

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Remove duplicate values of sets of data vertically

    Hi Excel gurus out there. So here is my situation.

    I am working with data that comes in sets that is two cells wide and anywhere from 2-5 rows in height.
    These sets are separated by one space in between them.
    Ultimately, what I want to achieve is to remove any duplicate sets of these combinations. The most straightforward way I thought to do this would be to take these sets and lay them out in a single row (seen on the right side of my screenshot).
    Remove duplicates should work fine if I am able to achieve this. I am not sure if there is an easier alternative.

    Untitled.png
    New Microsoft Excel Worksheet.xlsx
    Last edited by acojan; 08-27-2014 at 08:52 AM.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Remove duplicate values of sets of data vertically

    Hi & Welcome to the Forum.

    Please post a sample template of your workbook using the paper clip icon under "Go Advanced" option.

  3. #3
    Registered User
    Join Date
    08-27-2014
    Location
    Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Remove duplicate values of sets of data vertically

    Oh thank you for that. Haha thanks for the tip. Edited my first post.

  4. #4
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Remove duplicate values of sets of data vertically

    Possible options include Pivot table or advanced filter but more info needed to be sure

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Remove duplicate values of sets of data vertically

    Hi,

    Please see the attached file. I have added 2 helper columns and filtered the unique records in columns G & H using the following formula.

    =IFERROR(INDEX($A$2:$A$228,SMALL(IF($D$2:$D$228=1,ROW($A$2:$A$228)-ROW($A$2)+1),ROW(A1))),"")

    Note that this is an array formula and you need to confirm by pressing CTRL+SHIFT+ENTER
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Remove duplicate values of sets of data vertically

    Hmmm, this is a tough one. I will think on it and ask the other Gurus
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Remove duplicate values of sets of data vertically

    I like your solution cbatrody but I think the OP wants each set to be unique where a set is the total cells between blank rows. Your solution just pulls the rows that are unique. Correct me if I am wrong.

  8. #8
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Remove duplicate values of sets of data vertically

    Hi ChemistB,

    Yes, you are right, my solution pulls the rows that are unique in the first two columns. I am not sure if OP would be fine with this, let's wait for his response.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Remove duplicate values of sets of data vertically

    Look here...
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Remove duplicate values of sets of data vertically

    Please Login or Register  to view this content.
    I believe is a possible VBA solution

  11. #11
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Remove duplicate values of sets of data vertically

    Got the solution..
    check the attachment..
    To know the logic of my algorithm..
    Visit following link..
    http://http://excel-buzz.blogspot.co...olumns-to.html
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-29-2014 at 12:05 PM.

  12. #12
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Remove duplicate values of sets of data vertically

    Vikas_Gautam,
    Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

    You should have posted the code for the solution to this forum.
    Ben Van Johnson

  13. #13
    Registered User
    Join Date
    08-27-2014
    Location
    Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Remove duplicate values of sets of data vertically

    Thank you everyone for all the quick replies !! The solutions worked great! Thank you so much

  14. #14
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Remove duplicate values of sets of data vertically

    Quote Originally Posted by protonLeah View Post
    Vikas_Gautam,
    Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

    You should have posted the code for the solution to this forum.

    Okay I will take care of that in future..

    Vikas Gautam

  15. #15
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Remove duplicate values of sets of data vertically

    Quote Originally Posted by protonLeah View Post
    Vikas_Gautam,
    Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

    You should have posted the code for the solution to this forum.
    How exactly is this rule to be interpreted in this case, with regards to the fact that Vikas's site is arguably more of a blog than a forum?

    I ask since I myself have started adding a link to my blog (not forum!) in my signature.

    What's more, how does the definition you give, from the Forum Rules section of this site, tie in with this, from the site FAQ:

    "Signatures' contain information that you want to include at the bottom of all your posts. This might include pictures, links to your site(s), quotes, etc."

    So as long as it's not clearly a forum (and one which is competitive to this site), then it's generally ok? If not, perhaps this forum should consider amending that rule to include the phrase "blog", or perhaps, to be on the safe side:

    "Cross-promotion of, or links to, any site deemed competitive to this forum in signatures are prohibited."

    though obviously that may cause a bit of a stir amongst members as to which sites are classed as "competitive" to this one.

    Personally I have found material of educational (in Excel terms) value on Vikas's blog - if a link to his site is against forum rules, might we also exclude sites such as Chandoo, Contextures, etc.?

    Hoping for clarification.

    Regards
    Last edited by XOR LX; 08-28-2014 at 02:52 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  16. #16
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Remove duplicate values of sets of data vertically

    Vikas, your blog does not constitute a competing forum and your link is to free content, not commercial content. As such it is not a violation of rule #13. Your link in this thread is good. Whenever possible, provide the solution you're offering the OP in the thread itself. If the previously posted content on your blog accurately covers the posted question, then a well-meaning link is fine.

    Thank you all for your continued care that our rules are followed for the benefit of all.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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 find duplicate values from two sets of data in excel 2010
    By ratu4110 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-30-2012, 04:07 PM
  2. Replies: 8
    Last Post: 06-19-2012, 06:02 AM
  3. (NEW WORKBOOK) Compare duplicate values data and remove non compliant
    By lanziniad in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-11-2012, 12:10 PM
  4. How to Remove Both Sets of Duplicate Data
    By sstephen123 in forum Excel General
    Replies: 0
    Last Post: 11-10-2011, 09:27 AM
  5. loop through data twice & remove row if duplicate values are found
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2010, 02:29 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