+ Reply to Thread
Results 1 to 4 of 4

counting number of unique items in a column

  1. #1
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    counting number of unique items in a column

    I'm looking for a simple way to find how many unique items are in a column. In my case it is the number of dates used. In the past, I have had only one or two dates, so I can count the number that match cell 2 (i.e. COUNTIF(B:B, $B$2)) If this is less than the total number of rows (minus header), I have assumed two days and proceed accordingly using two data blocks. Or I have manually blocked the dates as named matrices (IF(Bx=date1, VLOOKUP(Cx,day1,8), VLOOKUP(Cx,day2,8)). This is not a very good solution if a user uses more than two dates.

    I am posting this in the general forum, and would prefer a spreadsheet solution. Right now, it seems easier to use VBA, but a lot of my users do not like the warnings Excel pops up what a spreadsheet has macros.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: counting number of unique items in a column

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    Re: counting number of unique items in a column

    There is another thread going; started by MnMCarta on 11/14 which is exactly what I am looking for except without the criteria blocks. I am checking some of those options now, but I do not like array formulas because many of my users use the Enter key to browse and that can unknowingly erase array formulas.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: counting number of unique items in a column

    You could use something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    modify ranges to suit but avoid use of entire column references with SUMPRODUCT.

+ 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] Counting each unique number in a column
    By Ejje in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2017, 05:54 AM
  2. Counting number of items in column since last blank
    By lbickford in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-13-2016, 01:40 PM
  3. [SOLVED] Count the number of Unique Items in a Column for each Unique Item in another Column
    By HangMan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2015, 01:18 PM
  4. Counting unique items on a list based on date in adjacent column
    By Mafoo17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 04:24 PM
  5. counting number of unique items in column
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2008, 02:17 PM
  6. Counting the Number of Unique Items Sold by Each Salesperson
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 06:14 AM
  7. Count number of unique items in a column that contains duplicates
    By Steembeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 09:06 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