+ Reply to Thread
Results 1 to 5 of 5

How to number unique cells?

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Honolulu, Hawaii
    MS-Off Ver
    2013 Excel, 2003 Excel
    Posts
    2

    How to number unique cells?

    I have an excel spreadsheet with attendees from several companies. There are several people from the same company which I want to have the same number so it would look like this:

    Company # Name Company
    1 Frank R&R Inc.
    1 Bob R&R Inc.
    1 Joe R&R Inc.
    2 Sue Shop Inc.
    2 Maddie Shop Inc

    I want the numbers in the left column to correspond with the company name. Is there a way to do this? Thank you!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to number unique cells?

    Maybe this...

    Data Range
    A
    B
    C
    1
    1
    Frank
    R&R Inc.
    2
    1
    Bob
    R&R Inc.
    3
    1
    Joe
    R&R Inc.
    4
    2
    Sue
    Shop Inc.
    5
    2
    Maddie
    Shop Inc.


    Entered in A1 and copied down:

    =SUMPRODUCT(1/COUNTIF(C$1:C1,C$1:C1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to number unique cells?

    Assuming you have headers in row 1 and the companies listed in groups in C2 down then try this formula in A2 copied down

    =N(A1)+(C2<>C1)
    Audere est facere

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Honolulu, Hawaii
    MS-Off Ver
    2013 Excel, 2003 Excel
    Posts
    2

    Re: How to number unique cells?

    Thank you! This was exactly what I was looking for.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to number unique cells?

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Count number of unique cells if month =
    By BM02GAN in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2014, 12:31 PM
  2. Count number of unique initials within cells
    By Keithflc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2013, 08:56 AM
  3. How can I count number of UNIQUE cells given a criteria
    By areynolds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2011, 02:19 PM
  4. How can I count number of UNIQUE cells given a criteria
    By jjurroz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2011, 11:03 AM
  5. How to report number of UNIQUE cells on new sheet?
    By JGCA in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-25-2008, 08:22 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