+ Reply to Thread
Results 1 to 9 of 9

How to spill Unique formula when data is in multiple columns?

  1. #1
    Registered User
    Join Date
    01-22-2016
    Location
    Chicago
    MS-Off Ver
    Office 365
    Posts
    11

    How to spill Unique formula when data is in multiple columns?

    I am trying to place a unique formula where it captures data from multiple columns. For example, if column A had values "AA" "AA" AB" "AC" "AC" the result, using the unique formula, would spill "AA" AB" "AC" in one column. What if the values also lived in columns A through D and I need to spill them into one column? Any ideas?

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,395

    Re: How to spill Unique formula when data is in multiple columns?

    It is best to upload the attachments and examples in your attachments

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to spill Unique formula when data is in multiple columns?

    Hi,

    Can you update your profile? I assume you're referring to the UNIQUE function, which is not available in Office 2011.

    Assuming a range of A1:D5:

    =SORT(UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",1,A1:D5)&"</b></a>","//b")))


    Note that FILTERXML only works in the desktop version. Also note that this set-up would need modifying if one or more of the cells within your range contained any of the three special characters &, <, >.

    Regards
    Click * below if this answer helped

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

  4. #4
    Registered User
    Join Date
    01-22-2016
    Location
    Chicago
    MS-Off Ver
    Office 365
    Posts
    11

    Re: How to spill Unique formula when data is in multiple columns?

    Hi - I've attached an example file of what I'm trying to do. I'm using Office 365. Thanks in advance!
    Attached Files Attached Files

  5. #5
    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,615

    Re: How to spill Unique formula when data is in multiple columns?

    Please update your forum profile - it's out-of-date (Excel 2011). Are you using Office 365 for Mac or PC? If the former, please add Mac to the profile entry. Thanks.
    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.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to spill Unique formula when data is in multiple columns?

    So how far did you get adapting the solution I posted to your workbook?

    =SORT(UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",1,A2:A74,C2:C74,E2:E74)&"</b></a>","//b")))

    Regards

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to spill Unique formula when data is in multiple columns?

    Wait, if those entries are all numeric then we can do much better:

    =UNIQUE(SMALL((A2:A74,C2:C74,E2:E74),SEQUENCE(COUNT(A2:A74,C2:C74,E2:E74))))


    Regards

  8. #8
    Registered User
    Join Date
    01-22-2016
    Location
    Chicago
    MS-Off Ver
    Office 365
    Posts
    11

    Re: How to spill Unique formula when data is in multiple columns?

    I think your solution did the trick. Thank you!

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to spill Unique formula when data is in multiple columns?

    Ok, you're welcome. Definitely go with the second one I posted if we're talking about numerics, though.

    Cheers

+ 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. Spill from list is returning in columns instead of rows
    By xTyD23x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2020, 03:26 PM
  2. [SOLVED] Get Unique Values from Multiple Columns Data
    By Rajeshkumar R in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2019, 07:16 AM
  3. [SOLVED] Formula to Extract Unique Values/Remove Duplicates Across Multiple Columns of Data
    By Lanceh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2017, 09:07 AM
  4. Replies: 6
    Last Post: 05-30-2016, 01:59 PM
  5. [SOLVED] Extract unique data from multiple columns
    By gak67 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2015, 10:51 PM
  6. [SOLVED] Count unique data across multiple columns
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2013, 06:45 PM
  7. Replies: 1
    Last Post: 03-02-2011, 04:14 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