+ Reply to Thread
Results 1 to 11 of 11

Matching Unique List of Clients based on Multiple Columns

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Matching Unique List of Clients based on Multiple Columns

    I'm helping a colleague with a tricky workbook situation she has. She has a "database" in Excel where she has all the accounts our office handles, along with who works on them in various roles.

    She's looking for a way be able to quickly summarize which employees are working on what accounts, along with revenue, etc. The tricky part is that each account is listed on a row once, and then there's 3 columns indicating who is working on it in a various role.

    I've attached a sample of the layout of her file (B3:E7). I was able to successfully create a column that lists out every unique employee name, and has additional rows that factor in how many times a person shows up in the data. What I'm struggling with now is how to successfully populate column H, which would list out each of the accounts a person works on.

    Any suggestions?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    So you already have the list of names and how many of each there are?
    eg 3 Bob's or 8 bob's or 1 bob?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Matching Unique List of Clients based on Multiple Columns

    Correct, I've got column G already working based on a formula, I just need to populate column H.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    and a name can only appear once in a column, correct?

  5. #5
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Matching Unique List of Clients based on Multiple Columns

    Nope - but I see now that my example poorly illustrated that. Bob might be listed as the primary contact for multiple accounts, so he'd show up in column C a few times.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    try this...
    =IFERROR(INDEX($B$4:$B$7,MATCH(G4,INDEX($C$4:$E$7,,COUNTIF($G$4:G4,G4)),0)),"No Contact")
    copied down

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    hmm should have refreshed 1st, just saw you reply in the qty.
    My suggestion wont pick up extra names

  8. #8
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Matching Unique List of Clients based on Multiple Columns

    I think I got it working, although not the cleanest. I added 3 columns to the left of the client name columns, and then combined the contact name with the count of how many times the person's name appears in the dataset (locked on row 4, so it drags as it goes down). So in the new columns, A4 would say "Bob1", B4 would say "Sam1". A5 would say "Sam2".

    Then I just kinda brute forced it with iferror vlookups to check each column

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    Nice. Can you show me a copy of your file, please?

  10. #10
    Registered User
    Join Date
    04-26-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Matching Unique List of Clients based on Multiple Columns

    Sure thing, here you go!
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching Unique List of Clients based on Multiple Columns

    Nicely done.

    Here is another, slightly longer, version...
    =IFERROR(INDEX($E$4:$E$8,MATCH(K4&J4,INDEX($A$4:$C$8,,IF(COUNTIF($A$4:$A$8,K4&J4)=1,1,IF(COUNTIF($B$4:$B$8,K4&J4)=1,2,IF(COUNTIF($C$4:$C$8,K4&J4)=1,3,0)))),0)),"Not found")

+ 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. Replies: 1
    Last Post: 03-01-2018, 01:18 PM
  2. [SOLVED] Identify difference in value between two columns based on matching of unique identifier
    By rn_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2017, 07:38 PM
  3. Replies: 0
    Last Post: 02-09-2017, 01:20 PM
  4. Replies: 0
    Last Post: 02-09-2017, 01:10 PM
  5. Replies: 0
    Last Post: 02-09-2017, 01:03 PM
  6. [SOLVED] Create Unique List based on matching value in adjacent column
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-06-2016, 01:29 PM
  7. [SOLVED] Listing unique values, based on matching two other columns in a single cell
    By bsamson05 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2016, 03:36 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