+ Reply to Thread
Results 1 to 10 of 10

counting blank cells

  1. #1
    Registered User
    Join Date
    11-25-2006
    Posts
    3

    Question counting blank cells

    I am trying to write a formula for the following can anyone help please?
    I have column D with blank cells and some with purchase order numbers in them. I want to count the blank cells in column D but only if the blank is 3days older than the date recorded in column A. Once I have done this I want to count ther same on every work sheet and I have 24 off them and get one answer.
    This will tell us all the outstanding purchase order older than 3days
    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064
    "I want to count the blank cells in column D but only if the blank is 3days older than..."

    This doesnt make sense. It's a blank cell, it can't be "older" than anything. It's blank.

    Please explain the problem more clearly.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613
    From your post, it seems that Col-A is "Order Date" and Col-D is Completion/Fill Date. Hopefully, you have a status column? For example, using 100 rows of col-G for the status, then:
    =IF(AND(G1:G100="",NETWORKDAYS(A1,TODAY())>3),"Overdue", "")
    and copy down the used rows of the column.
    Then in G101 you can sum the rows that contain "overdue" with:
    =COUNTIF(G1:G100,"overdue")
    Finally, in some cell on sheet 25 you can add the G101's of the previous 24 sheets with the array formula:
    =SUM(Sheet1:Sheet24!G1)
    and pressing Ctrl-Shift-Enter instead of just the enter key to accept the formula into the cell.
    Last edited by protonLeah; 11-26-2006 at 07:55 PM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    11-22-2006
    Posts
    80
    What is the importance of the control,shift,enter part as I'm experiencing formula loss on any given cell at times. The answer also resides the cell as well. example: =sum(a1:a34) in b2 formula bar and answer in cell b2.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Registered User
    Join Date
    11-22-2006
    Posts
    80
    Thanks VBA Noob great reading.

  7. #7
    Registered User
    Join Date
    11-25-2006
    Posts
    3

    count blank cells

    Quote Originally Posted by Special-K
    "I want to count the blank cells in column D but only if the blank is 3days older than..."

    This doesnt make sense. It's a blank cell, it can't be "older" than anything. It's blank.

    Please explain the problem more clearly.
    In column A I have the date we received a purchase rec
    In column B I have the area
    In column C I have the REC number
    In column D I have the cost code
    In column E the cells are blank until the purchase order has been processed and placed with the supplier.
    What I am trying to do is count the blank cells in each worksheet (bearing in mind we have 25 sheets for all different areas)and if the are 3days older than the date of reciept of Purchase Rec then we need it flagged up by a total number in a cell on the front page.
    Sorry if I didn't explain myself - please except my apologies
    Thanks for your time

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =SUMPRODUCT(--(A1:A100<>""),--(A1:A100<TODAY()-2),--(E1:E100=""))

  9. #9
    Registered User
    Join Date
    11-25-2006
    Posts
    3

    Count Blank Cells

    Quote Originally Posted by protonLeah
    From your post, it seems that Col-A is "Order Date" and Col-D is Completion/Fill Date. Hopefully, you have a status column? For example, using 100 rows of col-G for the status, then:
    =IF(AND(G1:G100="",NETWORKDAYS(A1,TODAY())>3),"Overdue", "")
    and copy down the used rows of the column.
    Then in G101 you can sum the rows that contain "overdue" with:
    =COUNTIF(G1:G100,"overdue")
    Finally, in some cell on sheet 25 you can add the G101's of the previous 24 sheets with the array formula:
    =SUM(Sheet1:Sheet24!G1)
    and pressing Ctrl-Shift-Enter instead of just the enter key to accept the formula into the cell.
    THANKS FOR THE FORMULA,
    I HAVE TRIED IT BUT IT COMES BACK WITH A MESSAGE SAYING
    DON'T USE EQUALS & FULL STOPS DOES THIS MAKE A DIFFERENCE.
    ALSO WHAT DOES NETWORKDAYS DO IN THE FORMULA?
    ALSO THE WORD OVERDUE DOES NOT APPEAR IN THE STATUS COLUMN
    THANKS FOR YOUR HELP

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello nralph,

    did you try my suggestion above?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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