+ Reply to Thread
Results 1 to 13 of 13

Formula or Pivot Table or something else to remove duplicate entries

  1. #1
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Formula or Pivot Table or something else to remove duplicate entries

    I am not sure what steps I would need to follow to get this 3 column worksheet to eliminate non-unique entries.

    What I am trying to accomplish is:

    Column A - Account Number
    Column B - Account Name
    Column C - Distributor Name

    If column A and column B match then look to column C

    If there is a different distributor names in Column C, remove.

    The end result we are looking for would be to leave only the UNIQUE data consisting of only those accounts with ONE distributor.



    see attached
    Attached Files Attached Files
    Last edited by dgrissom; 01-24-2022 at 11:32 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Please explain why you end up with the two results. i.e explain which of the original cells are use to create the result and why are they picked and the others ignored.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    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,647

    Re: Formula or Pivot Table or something else to remove duplicate entries

    One way!

    In D2 copied down:

    =COUNTIF($A$2:$A$11,A2)

    Now sort the entire range on column D (smallest to largest) and delete all rows below the last 1.
    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.

  4. #4
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Hi Richard,

    The data comes form a larger dataset in this format.

    What we are trying to achieve is a list where an account only has one distributor so as our sales teams do not call on an account that is being services by multiple distributors, therefore our end result would those accounts only being services by one distributor.

    Does that make sense?

  5. #5
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Hi Ali,

    Thank you, but I don't think this does not take into consideration the secondary filtering needed.

    If column A and column B match then I need column to C to be different, meaning that this account has more than one distributor servicing the account.

    I am trying to get a list of accounts where only one unique distributor is servicing the account, so column C becomes my primary filter for removal.

    Does this make sense?

  6. #6
    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,647

    Re: Formula or Pivot Table or something else to remove duplicate entries

    I think you need to give us a broader set of sample data.

  7. #7
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Updated sample dataset attached.
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Quote Originally Posted by AliGW View Post
    I think you need to give us a broader set of sample data.
    As Ali said, More data please

    This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.

    Remember that when you ask a question in a forum those of us who might be able to help know absolutely nothing about your system and work process or the terminology you use. Unless you have uploaded a workbook we know nothing about how it is laid out and little about what you want done with it or how the results should be presented.

    Whilst these things are second nature to you since you live with the workbook all the working day we start with zero knowledge so you need to take us by the hand and explain in quite precise detail your aims and goals as well as stuff like how your data might look different in other situations.
    Don't assume we are able to "figure it out". We're usually quite good but not psychic.

    Put yourself in our position and think about whether what you've posted makes sense and is unambiguous to someone who's never seen it before. You are asking us for help so help us to be able to help you by providing all the information we need, even if that information seems obvious or intuitive to you.

  9. #9
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Re: Formula or Pivot Table or something else to remove duplicate entries

    Thank you Richard and Ali,

    I have uploaded a larger dataset of what I receive on my end.

    Please let me know if there are more questions, I will try explain in more detail below.

    Overall what we are trying to achieve is take the dataset and filter it down to have only those accounts listed with the same account # and account name AND only have one distributor option column C.

    The list will show a number of the same accounts (#/name) with different distributors in column C on different rows.

    Therefore ABC Account may be show a distributor of A1 Distribution, ABC Distribution etc. on separate rows in column C.

    I am trying to determine which accounts have only one distributor total be eliminating those that may have a different distributor listed on separate rows.

    Does this make sense or have I made even more confusing?

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,543

    Re: Formula or Pivot Table or something else to remove duplicate entries

    This proposal employs a helper column (D) which may be moved and/or hidden for aesthetic purposes.
    The helper column is populated using: =AND(COUNTIFS(A$2:A$810,A2,B$2:B$810,B2,C$2:C$810,C2)=COUNTIFS(A$2:A$810,A2,B$2:B$810,B2),COUNTIFS(A$2:A$810,A2,B$2:B$810,B2)=COUNTIFS(A$2:A$810,A2))
    A pivot table is then produced with the three original fields placed in the Rows area and the helper field placed in the Filters area.
    The filter is set to only display those records where the helper column displays TRUE.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    02-21-2018
    Location
    North Carolina
    MS-Off Ver
    MSOffice365 2302 Enterprise
    Posts
    46

    Re: Formula or Pivot Table or something else to remove duplicate entries

    @JeteMc - This works perfectly!

    Thank you for your input and solution
    Last edited by dgrissom; 01-24-2022 at 11:36 AM.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,543

    Re: Formula or Pivot Table or something else to remove duplicate entries

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  13. #13
    Registered User
    Join Date
    01-24-2022
    Location
    australia
    MS-Off Ver
    365
    Posts
    7

    Re: Formula or Pivot Table or something else to remove duplicate entries

    thanks this helped me out as well

+ 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. How can I remove the duplicate numbering for the headers in a pivot table?
    By Rob - Jedco in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 01-29-2024, 10:11 PM
  2. [SOLVED] Need Formula to remove duplicate entries so I can compile one list
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-24-2016, 05:52 PM
  3. Pivot table that aggregates duplicate entries in multiple columns
    By InnerPickle in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-15-2015, 08:07 PM
  4. Excel pivot table doesn't show duplicate entries?
    By resmark1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-07-2015, 11:40 AM
  5. [SOLVED] Remove Duplicate Budget Amounts within the Pivot Table
    By mhedge in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-02-2013, 03:05 PM
  6. Formula to remove duplicate entries
    By VegasL in forum Excel General
    Replies: 1
    Last Post: 07-19-2007, 02:46 PM

Tags for this Thread

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