+ Reply to Thread
Results 1 to 6 of 6

I need Counting Help

  1. #1
    Registered User
    Join Date
    06-09-2005
    Posts
    3

    I need Counting Help

    I'm trying to find out if it is possible to enter a series of numbers in a single column, like

    Column C
    __________
    1, 4, 5, 7, 9
    1, 2, 5, 6, 7, 8, 9

    and then construct a series of COUNTIF statements to tally up the numer of times each acceptable value appears in the column.

    So, for the example above, the results should be:

    1 -- 2
    2 -- 1
    3 -- 0
    4 -- 1
    5 -- 2
    6 -- 1
    7 -- 2
    8 -- 1
    9 -- 2


    Is this possible?

    Thanks!
    Steve

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    How about:
    column D is 1,2,3,4,5,6,7,8,9
    column E = countif($C$1:$C$11,d1) copied down through e9.

    Is that what you are looking for?

  3. #3
    Registered User
    Join Date
    06-09-2005
    Posts
    3
    Quote Originally Posted by MrShorty
    How about:
    column D is 1,2,3,4,5,6,7,8,9
    column E = countif($C$1:$C$11,d1) copied down through e9.

    Is that what you are looking for?
    I'm not sure--I'm an excel noob (at least to features like this).

    In my example, the 2 rows under column C represent 2 rows in the spreadsheet.

    I'll give your suggestion a try (to the extent I understand how to do it!) and see if it works.

    Thanks!

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    When you say, " the 2 rows under column C represent 2 rows in the spreadsheet.
    ", do you mean that the data are contained in two individual cells in column C, or that column C is the first column, and each number is in its own cell (across to column H)? If it's the latter, it's as simple as moving the formulas around and changing the references. If it's the former, then a simple Data -> Text to columns to put the data into columns, then change the references should work.

  5. #5
    Registered User
    Join Date
    06-09-2005
    Posts
    3
    Quote Originally Posted by MrShorty
    When you say, " the 2 rows under column C represent 2 rows in the spreadsheet.
    ", do you mean that the data are contained in two individual cells in column C, or that column C is the first column, and each number is in its own cell (across to column H)? If it's the latter, it's as simple as moving the formulas around and changing the references. If it's the former, then a simple Data -> Text to columns to put the data into columns, then change the references should work.
    I was meaning "the latter." And your suggestion works like a charm--as I'm sure you knew it would! Thanks! It really got me out of a jam.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    Glad you got it figured out, and thanks for the feedback.

+ 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