+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Count instances of same entry in a list

  1. #1
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 2016
    Posts
    260

    [SOLVED] Count instances of same entry in a list

    Suppose I have a list of animal types in Col A going down the rows, for example: cat, dog, dog, elephant, ferret, ferret, ferret, zebra, etc

    In Col B I want to count how many times each of the SAME entry occurs, but rather than just doing "COUNTIF" (which would give the same value for each of the same entry) I need the list to count upwards consecutively each time another example of the same entry is found. So for instance with "ferret", column A would consist of "Ferret", "Ferret", "Ferret", and the corresponding column B entries would be 1, 2 and 3.

    The entries are currently sorted alphabetically so the duplicates are next to each other in terms of rows. It'd be best if this didn't need to happen but okay if it does as it's easy enough to sort the list.

    I know I've seen a formula somewhere else that does this (using an array formula of some kind) but I'll be damned if I can find it anywhere.

    Can anyone provide a solution?

    Many thanks
    -Rob
    Last edited by TheRobsterUK; 05-02-2017 at 10:09 AM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Count instances of same entry in a list

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

    and copy down. Range changes size with each row

  3. #3
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 2016
    Posts
    260

    Re: Count instances of same entry in a list

    Brill, thanks! :-)

  4. #4
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: [SOLVED] Count instances of same entry in a list

    no problem. Happy to be of help

+ 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 Instances
    By gishena in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2016, 03:59 AM
  2. Count of instances
    By Walter18 in forum Excel General
    Replies: 3
    Last Post: 04-02-2016, 04:56 PM
  3. [SOLVED] VBA to List each count of instances of a given value in another column
    By mfitzgerald94 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2013, 05:24 PM
  4. Replies: 3
    Last Post: 07-18-2012, 11:53 AM
  5. Search a list and count unique instances and match
    By eeanil in forum Excel General
    Replies: 2
    Last Post: 04-24-2012, 12:36 AM
  6. count instances within row
    By vicktown in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2009, 03:42 AM
  7. [SOLVED] How do I count the instances of numbers in a list?
    By John@NGC in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2006, 04:00 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