+ Reply to Thread
Results 1 to 11 of 11

Removing Duplicates with rules

  1. #1
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Removing Duplicates with rules

    Hi all,

    Interesting problem which I hope someone can help me with - trying to remove duplicates of company names with rules. I have been able to remove the duplicates of names and display the non duplicates but now I want to add a rules that if column B = "n" do not display this company.

    Best way to understand is to look at the excel file attached.

    Thanks for your help in advanced.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Removing Duplicates with rules

    with an filter on column B?

    Before filtering store the other data on sheet 2, so they don't get deleted.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Removing Duplicates with rules

    Thanks for the reply. I need this to be done on the fly as one sheet has data on and the other displays it.

    The problem is some companies might have "y" and "n" but if it has 1 "y" i want it to be displayed. its quite a complex problem.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Removing Duplicates with rules

    Hi

    Using a helper and hidden column. Let's say column D. So in D2 and copy down.

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


    In E7 and copy down this ARRAY formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Removing Duplicates with rules

    Cant get this to work can you send me an excel file?

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Removing Duplicates with rules

    Try these Array Formulas. Array Formula requires special keystrokes Ctrl+Shift+Enter instead of just Enter which you normally use in case of a regular excel formula.

    in E7
    Please Login or Register  to view this content.
    and copy down until you get blank cells.

    In F7
    Please Login or Register  to view this content.
    and copy down.

    Is this what you are trying to achieve?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Removing Duplicates with rules

    ..............................
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Removing Duplicates with rules

    Excellent work sktneer.

    I have a problem where one company might have "y" and "n" but I still want this to be displayed. The problem with your forumlar is it looks at the first one.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Removing Duplicates with rules

    In that case the formulas would be like this.....

    In E7
    Please Login or Register  to view this content.
    In F7
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-19-2014
    Location
    Sussex, England
    MS-Off Ver
    2010
    Posts
    141

    Re: Removing Duplicates with rules

    You are a genius

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Removing Duplicates with rules

    Thanks for the feedback.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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] Removing duplicates with rules in another column
    By guy13 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2014, 07:47 AM
  2. removing duplicates
    By comp23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2012, 02:24 PM
  3. Replies: 2
    Last Post: 06-08-2012, 05:47 AM
  4. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  5. [SOLVED] Formula to delete Duplicates based on certain rules
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2011, 02:53 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