+ Reply to Thread
Results 1 to 4 of 4

Syntax for UNIQUE Function reference multiple Table column headers

  1. #1
    Forum Contributor
    Join Date
    11-22-2020
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    202

    Syntax for UNIQUE Function reference multiple Table column headers

    Hi All,

    I appologise if this has been covered anywhere. I couldn't find anything relating to this very basic question.

    I want to extract unique values from a table. No Problem - Unique(TableName[Column1], false) does the trick. This only gives me the results from one column.

    However, if is use Unique(array,false) I can get unique values from several columns in the resultant array.

    I have tried various combinations of Unique (TableName[Column1][Column2],false) and Unique (TableName[Column1,Column2],false) etc, but I am missing something.


    Does anybody know the syntax that will allow me to use the Unique Function on a Table with multiple columns?

    Thanks in advance.

    Jeff
    Last edited by JeffGrant; 01-22-2021 at 02:43 AM.

  2. #2
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,428

    Re: Syntax for UNIQUE Function reference multiple Table column headers

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  3. #3
    Forum Contributor
    Join Date
    11-22-2020
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    202

    Re: Syntax for UNIQUE Function reference multiple Table column headers

    Persistence pays off :-)

    The solution is Unique((TableName[Column1]:TableName[Column2],FALSE)

    and just for added interest I threw in

    SORT(Unique((TableName[Column1]:TableName[Column2],FALSE),2) to sort on the second column....

  4. #4
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,428

    Re: Syntax for UNIQUE Function reference multiple Table column headers

    Thanks for sharing.

+ 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: 0
    Last Post: 05-12-2020, 12:36 PM
  2. [SOLVED] Extract multiple row headers and column headers if criteria is met in multiple columns
    By PaulM100 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-20-2019, 04:56 AM
  3. Pivot table with multiple rows against the same column headers
    By bocgaroe in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-17-2018, 05:37 AM
  4. Reference a column by table column name in Cells function
    By schristensen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2016, 02:24 PM
  5. [SOLVED] How to extract the unique reference from range of multiple column
    By savetrees in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-15-2016, 05:41 PM
  6. [SOLVED] Listing ROW/COLUMN Headers for Unique data Value in Table
    By fearonc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-27-2015, 08:53 PM
  7. using vba to reference column headers
    By byronova in forum Excel General
    Replies: 2
    Last Post: 03-08-2010, 08:00 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