+ Reply to Thread
Results 1 to 12 of 12

Extract a Unique List from Multiple Sheets

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Extract a Unique List from Multiple Sheets

    Hi,

    I have text data in A1:A10 in Sheet1 and also in the same range in Sheet2.

    I would like in Sheet3 to extract a unique list from the data in these two ranges.

    Can this be done with the UNIQUE function or is there another way to do it?

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 01-06-2022 at 05:51 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Extract a Unique List from Multiple Sheets

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: Extract a Unique List from Multiple Sheets

    Thanks Ali, I've added a sample workbook to the original post.

    Sheet3 contains the required outcome.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract a Unique List from Multiple Sheets

    With O365:

    =UNIQUE(FILTERXML("<A><B>"&TEXTJOIN("</B><B>",TRUE,Sheet1!A1:A10,Sheet2!A1:A10)&"</B></A>","//B"))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract a Unique List from Multiple Sheets

    You can extend the range into blank cells to make it more future-proof, if needed:

    =UNIQUE(FILTERXML("<A><B>"&TEXTJOIN("</B><B>",TRUE,Sheet1!A1:A100,Sheet2!A1:A100)&"</B></A>","//B"))

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Extract a Unique List from Multiple Sheets

    Similar option, but without using Unique
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract a Unique List from Multiple Sheets

    Fluff, interesting. I'd not have considered that structure... imagining (incorrectly) that isolated/interspersed instances of (say) AAA could be returned >1 time. However, I see they can't... Not sure your approach is better/worse... but one to (try to) remember.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Extract a Unique List from Multiple Sheets

    No better or worse IMO.
    However when using Xpath to remove the duplicates it's case sensitive, which Unique isn't. So depends on what the OP requires.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract a Unique List from Multiple Sheets

    Yes, I did notice the case sensitivity when playing with it a few moments ago.

  10. #10
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: Extract a Unique List from Multiple Sheets

    Thank you both very much!

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Extract a Unique List from Multiple Sheets

    Glad to help & thanks for the feedback.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract a Unique List from Multiple Sheets

    Likewise. You're welcome.

+ 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 extract a unique list of values from across multiple sheets in a workbook.
    By mightybracket123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-27-2021, 03:03 AM
  2. [SOLVED] Extract and sort unique List from multiple entries
    By john smette in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-22-2018, 01:51 PM
  3. [SOLVED] Extract Unique Entries Across Multiple Sheets
    By jlichtfuss in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2018, 01:52 PM
  4. Extract Unique List Based on multiple criteria
    By Herbiec09 in forum Excel General
    Replies: 7
    Last Post: 01-14-2017, 07:23 AM
  5. [SOLVED] Extract unique list from table that complies to multiple criteria
    By Henk Stander in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2016, 05:41 AM
  6. [SOLVED] Extract unique values from multiple sheets to final sheet
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2015, 03:03 PM
  7. [SOLVED] Extract unique values records across multiple sheets
    By Blake 7 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-12-2015, 08:57 AM

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