+ Reply to Thread
Results 1 to 2 of 2

count if a condition met

Hybrid View

mushtf count if a condition met 07-14-2014, 04:49 PM
jewelsharma Re: count if a condition met 07-14-2014, 10:48 PM
  1. #1
    Registered User
    Join Date
    07-14-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    1

    count if a condition met

    Hi All,

    I am trying to figure out a formula that I can use to count if the 5 consecutive rows in a column have the same value e.g the data set below has 1x4 times, 2x5 times, 3x5 times and 4x3 times so it should give me an answer 2.
    Any help?

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

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: count if a condition met

    try this array formula:
    Formula: copy to clipboard
    =SUM(IF(FREQUENCY(A1:A17,A1:A17)=5,1))

    An array formula must be entered as Ctrl + Shift + Enter

    HTH!

+ 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] How to count a condition based on having another condition?
    By Robster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-12-2014, 04:17 PM
  2. look up value then count if condition is met
    By braun.reivn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2014, 02:27 AM
  3. [SOLVED] How to count with condition
    By yukioh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2012, 02:44 AM
  4. Count on condition
    By vino3007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-31-2012, 08:13 AM
  5. [SOLVED] count col-A if col-B = condition
    By Balhar in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-18-2006, 05:52 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