+ Reply to Thread
Results 1 to 4 of 4

Count the no. of cells in a row greater than previous row

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Count the no. of cells in a row greater than previous row

    Hi,
    I have a few columns.
    Now I want to compute the share of cells in a row, which were greater than their corresponding values in previous row.
    Also there are certain blank cells in certain columns, whose values start after some date.

    I need to compute the values in Column I using a formula

    How to do this.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count the no. of cells in a row greater than previous row

    =sumproduct(isnumber(b3:h3)*(b4:h4>b3:h3))/counta(b3:h3)

  3. #3
    Registered User
    Join Date
    01-22-2019
    Location
    ny
    MS-Off Ver
    2016
    Posts
    22

    Re: Count the no. of cells in a row greater than previous row

    Quote Originally Posted by tim201110 View Post
    =sumproduct(isnumber(b3:h3)*(b4:h4>b3:h3))/counta(b3:h3)
    Thanks for sending this.
    Can you tell me, what if I want to ensure the current row also does not include blanks in the computation

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count the no. of cells in a row greater than previous row

    I created a new test case to exercise your new requirement of blanks in the current row that are not present in the previous row:
    share.png

    What result do you expect in this case? (3/7)*100 ?
    If so then Tim's formula works as is.

    Or do you expect (3/5)*100 ?
    If so then the following mod to Tim's formula should work. In J4 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Count number of cells since last value greater than a value
    By justibm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2018, 01:37 PM
  2. [SOLVED] Count Number of Cells in Col B that are greater than Col A
    By lordfa9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2015, 04:44 AM
  3. Count a row if one of many cells contains a value greater than 0
    By bedwards11 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2015, 10:46 PM
  4. [SOLVED] Count cells containing Dates (greater than 2014) based on Filtered Cells
    By sam99 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-26-2014, 10:30 AM
  5. Count cells (not value) greater than 0
    By rwhite713 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2013, 10:41 PM
  6. Replies: 7
    Last Post: 03-09-2009, 08:32 AM
  7. Count non-contiguous cells where value is greater than 0
    By anre5180 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2006, 09:12 AM

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