+ Reply to Thread
Results 1 to 5 of 5

Counting unique values in a table column

  1. #1
    Registered User
    Join Date
    01-01-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    3

    Counting unique values in a table column

    I have a table accounts "Account Numbers" and at the bottom of the table I would like to provide a value that shows the number of unique account numbers in the column. Please note that this is a table and not a list.

    Account Number
    0233
    0233
    0234
    4432
    4333
    4432
    4415
    4415

    I am using Excel 365 ProPlus. Is there a function I can place at the bottom of the column for this table that will count the number of unique account numbers? Would this function still work if the account numbers were filtered in some way (e.g. account numbers that only begin with the number 4,etc.?

    Thanks in advance for the help with this!

    MGTexas123

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

    Re: Counting unique values in a table column

    =SUM(1/COUNTIF(A3:A10,A3:A10)) array formula

  3. #3
    Registered User
    Join Date
    01-01-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    3
    Quote Originally Posted by tim201110 View Post
    =SUM(1/COUNTIF(A3:A10,A3:A10)) array formula
    Thanks Tim for your help with this. Is there a way to do this without an array formula or cell references? Something like countif(1/(column header name in table)) ?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Counting unique values in a table column

    Try the following: =SUMPRODUCT(1/COUNTIF(Table1[Account Number],Table1[Account Number]))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Counting unique values in a table column

    You have Office 365. You should be able to enter this without CSE.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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: 7
    Last Post: 10-23-2018, 10:18 AM
  2. Counting cells in one column based on unique values in another column
    By 3SixOne in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2017, 06:23 AM
  3. Counting unique values across more than one column
    By Lija in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2013, 06:20 PM
  4. [SOLVED] counting unique values in one column for each value in another
    By seancain99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2013, 05:56 PM
  5. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  6. [SOLVED] Counting unique-ish values in a column
    By D_N_L in forum Excel General
    Replies: 2
    Last Post: 07-25-2012, 04:44 AM
  7. Replies: 6
    Last Post: 10-18-2011, 07:34 PM

Tags for this Thread

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