+ Reply to Thread
Results 1 to 10 of 10

COUNT blank cells within a range determined by Todays date

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    COUNT blank cells within a range determined by Todays date

    Please see attached document.

    In Column Q, i would like to count the number of consecutive cells which contained a value - the cell range is determined by todays date and works backwards.

    Thanks in advance for your help with this.

    Title should say Non Blank - ie. count consecutive cells containing a value
    Attached Files Attached Files
    Last edited by stephboucher; 04-16-2014 at 07:02 AM.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: COUNT blank cells within a range determined by Todays date

    Please use the following formula in Q4:

    COUNT(C4:P4)

  3. #3
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: COUNT blank cells within a range determined by Todays date

    thanks for your help but that doesn't consider todays date or consecutive cells.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNT blank cells within a range determined by Todays date

    Hi,

    So using today's date, that would mean we begin with a blank cell for Item B - can you confirm what your desired result is?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: COUNT blank cells within a range determined by Todays date

    in the example i posted .....

    Cell Q4 would display a result of 7 because .....

    1st criteria is that working from p3 to c3, find the date matching today (in this case, P3 does)

    therefore, working back from P3 in this example, count the number of consecutive cells which contain data.

    P3 = Yes, O3 = Yes, n3 = Yes, M3 = Yes, L3 = Yes, K3 = Yes & J3 = Yes

    Q4 = 7

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNT blank cells within a range determined by Todays date

    Why is H4 excluded?

    =COUNTIFS(C3:Q3,"<="&TODAY(),C4:Q4,">0") = 8
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNT blank cells within a range determined by Todays date

    (self-deleted)

  8. #8
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: COUNT blank cells within a range determined by Todays date

    since posting this, I have amended my spreadsheet to always have a rolling 14 days of data - P3 will always be today.

    I am only interested in counting the number of consecutive cells that contain data working back from P.

    in the example i included, i want to count consecutive cells which have data - item A, has a break on I4 (working backwards from P), so i would only count j to p

  9. #9
    Registered User
    Join Date
    01-18-2011
    Location
    Somerset
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: COUNT blank cells within a range determined by Todays date

    I think ive resolved it myself.

    =IF(COUNT(D4:P4)=14,14,IF(COUNT(C4:P4)=13,13,IF(COUNT(E4:P4)=12,12,IF(COUNT(F4:P4)=11,11,IF(COUNT(G4:P4)=10,10,IF(COUNT(H4:P4)=9,9,IF(COUNT(I4:P4)=8,8,IF(COUNT(J4:P4)=7,7,IF(COUNT(K4:P4)=6,6,IF(COUNT(L4:P4)=5,5,IF(COUNT(M4:P4)=4,4,IF(COUNT(N4:P4)=3,3,IF(COUNT(O4:P4)=2,2,IF(COUNT(P4)=1,1,0))))))))))))))

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNT blank cells within a range determined by Todays date

    Perhaps:

    =MATCH(TRUE,INDEX(C4:P4,COLUMN(P4)-N(INDEX(COLUMN(C4:P4),,)))="",0)

    Regards

+ 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. Formula to Count Consecutive Blank Cells in a Range Depending on Today's Date
    By tophatpete in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-28-2020, 05:12 AM
  2. [SOLVED] If formula, if two cells are blank, return blank, if one has a date, subtract todays date
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2014, 12:47 PM
  3. Replies: 8
    Last Post: 02-08-2013, 04:29 AM
  4. Macro for Save As a pre-determined range of cells, freezing drop down box and date
    By MonseigneurB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2012, 02:08 PM
  5. Replies: 3
    Last Post: 05-13-2012, 08:25 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