+ Reply to Thread
Results 1 to 6 of 6

keeping track of how many times a number shows up

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    8

    keeping track of how many times a number shows up

    Say, for example, I have a spreadsheet as follows:

    0 1 1 2 3 2 0 1 2
    1 2 1 2 3 3 1 0 1

    Is there a way to count the number of times a specific number shows up and have excel post it to a different cell? I need to know how many times a certain number came up for a specific row, and how many times. Thanks
    Last edited by rismr; 04-22-2009 at 04:29 PM. Reason: solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: keeping track of how many times a number shows up

    Use Countif()

    e.g. =Countif(A1:I1,1) will count number of 1's in A1 to I1
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-22-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: keeping track of how many times a number shows up

    thanks for the fast reply.

    it seems to work perfectly if i use a number as the criteria, but not if i use a "Y" or "N" does this function only work with numbers and not letters?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: keeping track of how many times a number shows up

    if you use "Y" or "N" it must be in quotes as you show...

    e.g. =Countif(A1:I1,"Y")

  5. #5
    Registered User
    Join Date
    04-22-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: keeping track of how many times a number shows up

    thanks for the help :D

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: keeping track of how many times a number shows up

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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