+ Reply to Thread
Results 1 to 8 of 8

Count the number of column that the last value is greater than last three rows...

  1. #1
    Registered User
    Join Date
    02-15-2011
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    6

    Lightbulb Count the number of column that the last value is greater than last three rows...

    I have a data set (a1:j4) as below...
    TO Count the number of column that the last row value is greater than last three rows...
    i try a formula but its too long...can anyone simpify it
    thanks

    3 2 3 3 1 1 2 2 2 1
    1 1 1 1 1 1 2 3 1 3
    2 1 2 2 3 1 2 2 3 2
    4 4 5 3 1 2 4 2 4 1

    the formula of K4= SUM(A4>MAX(A1:A3),B4>MAX(B1:B3),C4>MAX(C1:C3),........,J4>MAX(J1:J3))
    (OUTPUT = 6)

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,841

    Re: Count the number of column that the last value is greater than last three rows...

    How are you getting 6? I get 5.

    Try this formula. It is an array formula, so you need to enter it by hitting CTRL-SHIFT-ENTER (not just ENTER).
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you do that properly, you will see it in the formula bar with brackets, but you can't just type the brackets it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-15-2011
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Count the number of column that the last value is greater than last three rows...

    Excellent....thats what i want...thank you

    ^_^

  4. #4
    Registered User
    Join Date
    02-15-2011
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Count the number of column that the last value is greater than last three rows...

    Quote Originally Posted by 6StringJazzer View Post
    How are you getting 6? I get 5.

    Try this formula. It is an array formula, so you need to enter it by hitting CTRL-SHIFT-ENTER (not just ENTER).
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you do that properly, you will see it in the formula bar with brackets, but you can't just type the brackets it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    So strange you got 5? I overlook into your answer...
    Column A , B, C ,F ,G ,I ...The last row of these 6 columns is greater than row 1 to row 3 ...by inspection only...

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Count the number of column that the last value is greater than last three rows...

    Hi jackyuen !

    Can you please attached a sample file..

    I mean.. If I enter.. 9 in between any cell A1:J4, I got answer as 0.. as None of the last ROW in any column is greater than 9,,

    @6StringJazzer
    isn't is checking if any cell is greater than Just the MAX of A1:J3, In sample file..3
    Or I am over-reacting..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Count the number of column that the last value is greater than last three rows...

    May be this,

    =SUMPRODUCT((A4:J4>SUBTOTAL(4,OFFSET(A1:A3,,COLUMN(A4:J4)-COLUMN(A4))))+0)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Registered User
    Join Date
    02-15-2011
    Location
    hk
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Count the number of column that the last value is greater than last three rows...

    thank you Haseeb...
    exactly what i want....!!!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,841

    Re: Count the number of column that the last value is greater than last three rows...

    My apologies for the error I'm glad you got your answer

+ 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. [SOLVED] Count the number of rows of a certain column that have the same value
    By aviatecar in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-28-2014, 04:05 PM
  2. [SOLVED] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  3. [SOLVED] Filtering macro, count number of rows and include count in last column.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 07:17 AM
  4. [SOLVED] How to count the number of times column B is greater than column A
    By scorpiogirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2012, 02:40 AM
  5. Count number of rows with data in a column....
    By MAButler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2011, 02:31 PM

Tags for this Thread

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