+ Reply to Thread
Results 1 to 8 of 8

Count for date older than 30 days, column C AND D blank - for worker

  1. #1
    Registered User
    Join Date
    08-01-2018
    Location
    Mount Vernon, WA
    MS-Off Ver
    365
    Posts
    24

    Count for date older than 30 days, column C AND D blank - for worker

    Hello again! Trying to wrap my head around this.

    Column A: - Date request initiated
    Column B - Worker
    Column C - If request was closed (unsuccessfully)
    Column D - If request was completed (successfully)

    - As more data is inserted (and to make it easier for our team to see), I have excel highlight rows (in red) older than 30 days if both columns C and D are empty.

    Using conditional formatting, the formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I then have the conditional formatting apply to the entire table.

    Lines turn red as intended. What I would like is to have a cell for each worker with a count of how many lines need attention (older than 30 days with no data in columns C or D.
    This would hopefully remind a worker to scroll up and find those lines needing closed.

    Example:
    Sample.png

    I have tried a few different ways to add a COUNTIF and COUNTIFS (unsuccessfully, I might add).

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


    Sample file attached. Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,772

    Re: Count for date older than 30 days, column C AND D blank - for worker

    you dont need the AND , but a range and count ifs work like this
    =COUNTIFS($A2:$A1430,"<"&TODAY()-30,$A2:$A1430, "<>",$C2:$C1430,"",$D2:$D1430,"",$B2:$B1430, "EARL")
    if you want the name hard coded

    Quite a large dataset to provide a solution to ,also looking at all the conditional formatting rules - NOT sure why you have all the different applied to ranges and cells
    you would usually select the range you want the conditional forammting to be applied to
    which is A2 to G1430 and then use a formula with row 2 in
    =AND($A2<TODAY()-30,$A2 <>"",$C2="",$D2="")
    that will highlight the row A to G
    I suspect you may have done that and then deleted and added rows which has changed the applied to range - NOT Sure

    - anyway , the countifs

    I have had to make some of earls data blank in C and D , made 11 rows clear
    and have a count now of 12 in K3

    Not sure where you want the answer
    also not sure why specifiying row 1357
    I have used the full rang eof rows $A2:$A1430
    but may need extending if adding more data
    Attached Files Attached Files
    Last edited by etaf; 04-05-2024 at 04:22 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-01-2018
    Location
    Mount Vernon, WA
    MS-Off Ver
    365
    Posts
    24

    Re: Count for date older than 30 days, column C AND D blank - for worker

    That is most excellent, thank you. Also, providing me guidance on cleaning up my other formulas!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,772

    Re: Count for date older than 30 days, column C AND D blank - for worker

    you are welcome , glad its all worked out ok

  5. #5
    Registered User
    Join Date
    08-01-2018
    Location
    Mount Vernon, WA
    MS-Off Ver
    365
    Posts
    24

    Re: Count for date older than 30 days, column C AND D blank - for worker

    One question - regarding your formula for highlighting rows A to G. Will this also highlight added rows in the table? Thank you.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,772

    Re: Count for date older than 30 days, column C AND D blank - for worker

    =COUNTIFS($A2:$A1430,"<"&TODAY()-30,$A2:$A1430, "<>",$C2:$C1430,"",$D2:$D1430,"",$B2:$B1430, "EARL")

    you can just extend the rows
    =COUNTIFS($A2:$A10000,"<"&TODAY()-30,$A2:$A10000, "<>",$C2:$C10000,"",$D2:$D10000,"",$B2:$B10000, "EARL")

    so now will use any data in rows 2 to 10,000 rows


    for highlighting conditional formatting
    you can change the "applied to" range

    A2:G10000

    so long as the starting row in the selected / applied to range - in this - 2 - matches the formula row
    so it is looking at ROW 2 and the formula is also looking at row2

    as it is at the moment
    =AND($A2<TODAY()-30,$A2 <>"",$C2="",$D2="")

    and you are testing to make sure A2 is NOT blank and so will NOT highlight the blank cells from say row
    1430 to 10,000

  7. #7
    Registered User
    Join Date
    08-01-2018
    Location
    Mount Vernon, WA
    MS-Off Ver
    365
    Posts
    24

    Re: Count for date older than 30 days, column C AND D blank - for worker

    Thanks again! Makes perfect sense.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,772

    Re: Count for date older than 30 days, column C AND D blank - for worker

    you are welcome

+ 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] Help - Count how many orders the worker made in a Date Range
    By Talespin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2018, 12:07 PM
  2. Replies: 8
    Last Post: 07-02-2014, 01:39 PM
  3. Count days between dates for a part-time worker
    By catbrier in forum Excel General
    Replies: 5
    Last Post: 04-04-2014, 06:53 AM
  4. Help me! I want to count the working days of worker with count and if array.
    By tuyetngapt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2013, 12:52 AM
  5. Replies: 8
    Last Post: 07-13-2012, 09:02 AM
  6. [SOLVED] Search 1st Column for Date older than 5 days based on 2nd column contents
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2012, 10:49 PM
  7. Count number of dates older than 30 days
    By altaquip_travis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2008, 03:20 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