+ Reply to Thread
Results 1 to 5 of 5

count occurances in column

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    count occurances in column

    Hi there, I have a list of fruit in column A. A snippet is show below.

    I want to put 2 numbers next to each. The fist is the amount of occurances in the list, and the second is which occurance this particular row is.

    So example list below

    apple
    Orange
    apple
    banana
    Cherry
    Orange
    Cherry
    Cherry
    pear
    banana
    apple

    Would look like this (for apple)

    fruit count occurance
    apple 3 1
    Orange
    apple 3 2
    bannana
    Cherry
    Orange
    Cherry
    Cherry
    pear
    bannana
    apple 3 3

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: count occurances in column

    Hi cmbo80,

    For count use :-
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


    see attached count occruences.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: count occurances in column

    1) =COUNTIF($A$2:$A$20,A2) >>In B2

    2) =COUNTIF($A$2:A2,A2) >>>In C2

    Drag down
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: count occurances in column

    See the attached.
    Attached Files Attached Files
    Gary's Student

  5. #5
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: count occurances in column

    Thanks all for your help

+ 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