+ Reply to Thread
Results 1 to 2 of 2

Counting the number of empty cells based on a condition in a range

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Counting the number of empty cells based on a condition in a range

    Hello all,

    I have a file in which A2:A11 has the due date and B2:B11 has the paying date.
    This range is if C2 is 10. 10 Rows.
    In D2 I need to find compare A2:B11 and should find the blank cells in that.
    The range should be changed automatically if the value in cell C2 is changed. If C2 is 5 then the range should be A2:B6 and so on.

    Can somebody help me please.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Counting the number of empty cells based on a condition in a range

    In D2:

    =COUNTIF(A2:OFFSET(A2,C2-1,1),"")
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received 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. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  2. Replies: 0
    Last Post: 06-19-2012, 10:16 AM
  3. Counting number of cells that are not empty
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2010, 12:04 PM
  4. Replies: 2
    Last Post: 06-19-2006, 09:10 AM
  5. [SOLVED] Counting the total number of cells with specified condition(freque
    By Kelvin in forum Excel General
    Replies: 2
    Last Post: 07-10-2005, 08:05 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