+ Reply to Thread
Results 1 to 4 of 4

Countif? Counting #s above a cell

  1. #1
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Countif? Counting #s above a cell

    Please help me, I have a column (M) with 300 single digit numbers, starting in the last cell (row 300) and going up,
    I need a formula that only counts how many times the numbers 0 thru 9 show up above the number 0,1,2,...,9
    and put the results in cells b2:k11 (Counting cells).
    See attached example, starting cell M21 we find an 8, above it we see the # 6, the same happens in cell M7, then Cell H10 will be 2
    and in cell G10 will be 1 because there is only 1 event with a 5 above the 8
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Countif? Counting #s above a cell

    1) Move the column M values all down 1 row to leave a blank M1
    2) The first formula in B2, copied across the table, would be:

    =SUMPRODUCT(($M$2:$M$22=$A2)*($M$1:$M$21=B$1))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Countif? Counting #s above a cell

    Thank you very much for your help, it work 100 %

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Countif? Counting #s above a cell

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. Counting data across multiple cells using a cell specific formula in countif
    By Brighteyed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 10:04 PM
  2. [SOLVED] CountIf not counting...
    By ciresuark in forum Excel General
    Replies: 2
    Last Post: 01-20-2015, 05:43 PM
  3. How do i make my Countif function skip counting a blank cell
    By Renildrah in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-20-2014, 05:00 AM
  4. [SOLVED] countif formula not counting
    By Chris Manion in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-11-2014, 12:25 PM
  5. [SOLVED] COUNTIF not counting
    By alb43 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2013, 08:11 AM
  6. Counting even/odd rows with countif
    By Orlic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2007, 01:07 AM
  7. [SOLVED] Using COUNTIF for Counting Words?
    By Rich B in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2005, 04:05 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