+ Reply to Thread
Results 1 to 5 of 5

Count max number of sequentially filled and empty cells

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Count max number of sequentially filled and empty cells

    Hi all, I've got two columns, one with dates and the other which I mark cells with an "N" if an event occurs on a particular day, and leave blank otherwise. I want a formula which returns the longest run of N's, as well as empty values. I did some Googling online and, not surprisingly, this question has been asked many times, and so I managed to find many threads proposing the following formula:

    Please Login or Register  to view this content.
    However, it doesn't work. It just returns the total number of N's in my column. Am I missing something?

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Count max number of sequentially filled and empty cells

    Hi,

    These should do ask you require (It works on a test sheet for me)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that these are array formulas. As such, the formula without the curly brackets should be entered, and confirmed with CTRL, SHIFT and ENTER. If done correctly, Excel will display with curly brackets..
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Count max number of sequentially filled and empty cells

    Awesome, thanks!

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Count max number of sequentially filled and empty cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    10-11-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Count max number of sequentially filled and empty cells

    Quote Originally Posted by sweep View Post
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Gah, sorry about that. Done!

+ 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 number of empty cells and sum up too the first non-empty cell.
    By CraftyGamer in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-28-2017, 11:35 AM
  2. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  3. Find count of filled cells and empty cells in a column
    By thepinkgeologist in forum Excel General
    Replies: 4
    Last Post: 09-22-2015, 01:03 PM
  4. Count filled and empty cells from the first filled cell in a row
    By mdaoust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2014, 01:23 PM
  5. count filled and empty rows till the last filled row
    By Dalal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2011, 04:32 AM
  6. Count number of filled cells between lines of highlighted rows
    By vzc8 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2011, 01:38 PM
  7. I can' count number of filled cells in row
    By dschmitt in forum Excel General
    Replies: 1
    Last Post: 03-11-2010, 09:53 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