+ Reply to Thread
Results 1 to 3 of 3

Countif to next non Blank

  1. #1
    Registered User
    Join Date
    02-22-2019
    Location
    Fairfax, VA & SF, CA
    MS-Off Ver
    Pro 2019
    Posts
    6

    Countif to next non Blank

    Hey there!

    I've come to the last step in a project I've been working on for a few days and can't seem to figure out the last step. Essentially what I need to do is take a count (in an adjacent column) from the values inbetween 2 nonblank cells. I've included a screenshot of the sheet I'm working on. The yellow highlight areas would be where the formula would take place and would be counting the non-blank values in Column K (True/False) over the range between non-blanks in Column P.

    So Cell T2 would return 1, Cell T4 would return 2 and Cell T7 Would Return 9.

    Happy to shre the workbook for furthe detail here!

    Thanks!

    Bryan
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,738

    Re: Countif to next non Blank

    Please attach the workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-22-2019
    Location
    Fairfax, VA & SF, CA
    MS-Off Ver
    Pro 2019
    Posts
    6

    Re: Countif to next non Blank

    Hey, I actually figured this out using

    =ArrayFormula(if($A24="","",countif(offset(K25,0,0,match("",$K25:K$2000,0),1), "TRUE")/counta(offset($K24,0,0,(match("",$K25:K$2000,0)-1),1))))

    I'm sure theres a better way to do it.

    Thank you though!

+ 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. Countif blank or not.
    By LeeBillington in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-27-2020, 02:04 PM
  2. Countif if the cell value is not blank
    By renjithvakkayil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2019, 04:34 AM
  3. [SOLVED] COUNTIF needs to count blank
    By rz6657 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-17-2016, 01:34 PM
  4. [SOLVED] Countif until blank cell (mutiple blank cells)
    By plasma33 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-07-2015, 01:14 PM
  5. CountIf blank with two columns
    By gibsongk55 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-26-2010, 04:52 AM
  6. [SOLVED] How to COUNTIF blank cells?
    By Soapman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2006, 05:30 PM
  7. Countif not blank
    By Darby in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-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