+ Reply to Thread
Results 1 to 3 of 3

Counting Values Contiguously but duplicates counted as 1

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Fort Myers, Florida
    MS-Off Ver
    Excel 2017
    Posts
    29

    Counting Values Contiguously but duplicates counted as 1

    Hello,

    I am looking to count nonblanks in column A contiguously but counting the duplicates only once. Here is an example below:

    A B

    1 Andrew
    2 Kevin
    3 Jenny
    1 Andrew
    4 James

    Can someone help with a formula in Column A that can do this? Thanks so much

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Counting Values Contiguously but duplicates counted as 1

    Using your posted example, this regular formula returns the count of unique, non-blank combinations:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    With your data, that formula returns: 4

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Counting Values Contiguously but duplicates counted as 1

    If your list starts in B2, this formula in A2 and dragged down should also work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please click the * icon below if I have helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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