+ Reply to Thread
Results 1 to 9 of 9

Populating a list from multiple columns with no duplicates

  1. #1
    Registered User
    Join Date
    08-08-2017
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    40

    Populating a list from multiple columns with no duplicates

    Hey there,

    I've attached an example sheet. I need to search multiple columns (A & B in this example) to populate all the names to one column (C in this example) but with no duplicates.

    I have a formula in Column E to populate with no duplicates from one column but I don't know how to expand it to multiple columns, or if there's a better formula that will work.

    Thanks in advance for any help.
    Attached Files Attached Files
    Last edited by Ksun23; 04-18-2018 at 04:03 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Populating a list from multiple columns with no duplicates

    j4=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW($B$4:$E$9)*10000+COLUMN($B$4:$E$9))/($B$4:$E$9<>"")/(COUNTIF($J$3:J3,$B$4:$E$9)=0),ROWS($J$3:J3)-COUNTA($J$3:J3)),"R000000C0000"),),"")
    and down

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

    Cool Re: Populating a list from multiple columns with no duplicates

    or simply use PowerQuery (Get&Transform)
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Populating a list from multiple columns with no duplicates

    Another formula way. It is an array entered formula.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    In D4 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    08-08-2017
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    40

    Re: Populating a list from multiple columns with no duplicates

    Tim, thanks for the reply. I couldn't get your formula to work, I may not of explained what I needed well enough or I was entering it wrong.

    Sandy, power query is not something I've used yet. I took a quick look at it and it looks like a great tool that I need to learn. Thanks for the reply.

    FlameRetired, that formula works great, thank you. I had figured out a work around but this formula will work much better for me.

    Thanks again everyone, saved the day as always.

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

    Re: Populating a list from multiple columns with no duplicates

    You are welcome

    Power Query for

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Populating a list from multiple columns with no duplicates

    Ksun23,
    You are welcome. Thank you for the feedback.

    I too need to learn PQ ... but first to upgrade.

    I would encourage you to have another go with tim's formula. It is much more versatile and powerful than the one I posted. Perhaps copying formula from the "body" of that post has interfered. If that is true try copy/paste (into J4) from this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-08-2017
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    40

    Re: Populating a list from multiple columns with no duplicates

    After your reply I did go back and try Tims formula again and it certainly did work, not sure what I did wrong the first time. Now I have 2 methods going forward, thanks so much guys.

    For PQ, I have Excel 2016 so it is included with it. I have dabbled with SQL from Access to Excel, PQ at first glance looked similar. I am not familiar enough with either of them but definitely have to set aside the time to learn them.

    Thanks again for the replies, very much appreciated.

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

    Re: Populating a list from multiple columns with no duplicates

    You are welcome
    Have a nice day

+ 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] Populating a list, no duplicates and multiple criteria
    By Ksun23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2018, 11:18 AM
  3. [SOLVED] VBA To Highlight Duplicates against a Master list across multiple columns
    By Bagpuss1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-08-2015, 11:22 AM
  4. [SOLVED] Reducing data validtion list in multiple columns to not allow duplicates
    By eksweeper16 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2015, 07:23 AM
  5. Populating fields in multiple cells based on criteria in multiple columns
    By excelalways in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 08:17 AM
  6. [SOLVED] Populating multiple cells from drop down list
    By RWickstead in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 04-11-2013, 02:56 AM
  7. Replies: 1
    Last Post: 01-01-2012, 01:23 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