+ Reply to Thread
Results 1 to 6 of 6

Counting number of repetitions of a number in a column?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2011
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    4

    Counting number of repetitions of a number in a column?

    I've been doing some practice test question from a question bank and want to keep track of which question I've done wrong. Each time that I do a section, I've recorded the numbers to questions that I've missed (see attachment) in a column. Is there a way to automatically count the number of times a number (missed question) is repeated in a column of numbers and display it in a new table?

    For example, a column might have the following numbers:
    5
    10
    11
    15
    15
    15
    16
    16
    17
    17

    I'd like to have a macro/forumula that writes out:
    5: 1
    10: 1
    11: 1
    15: 3
    16: 2
    17: 2

    Currently, there are 11 columns. I would keep adding missed questions to each column the more times I do a question and miss it.

    If there's a way I can do it automatically, it would be a great help. Thanks.
    Attached Files Attached Files
    Last edited by webazoid; 07-01-2011 at 10:00 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting number of repititions of a number in a column?

    see sheet 2
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-01-2011
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Counting number of repititions of a number in a column?

    Quote Originally Posted by martindwilson View Post
    see sheet 2
    awesome! thanks.

  4. #4
    Registered User
    Join Date
    07-01-2011
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Counting number of repititions of a number in a column?

    Quote Originally Posted by martindwilson View Post
    see sheet 2
    Just noticed that first two columns CA and DE are missing.

  5. #5
    Registered User
    Join Date
    12-21-2011
    Location
    Muskogee, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Counting number of repititions of a number in a column?

    Can I get a copy?
    Quote Originally Posted by martindwilson View Post
    see sheet 2

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting number of repetitions of a number in a column?

    there you go
    Attached Files Attached Files

+ 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