+ Reply to Thread
Results 1 to 4 of 4

Date Check Array

Hybrid View

  1. #1
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Date Check Array

    I need to write an array to help me check the length of outstanding actions.

    I have some simulated data in my attached spreadsheet. Items in column A, opened date in column B and closed date in column C. I need to count, for the data without a closed date how long have they been open, ie compare the opened date to todays date (cell B1).

    I've mocked up a table (highlighted) of what I expect the result should look like if we count how many are less that 30 days, 30-60 days or over 60 days.

    I struggle with arrays, can anyone help?

    Any and all help appreciated.

    Ed

    Day Count Example.xlsx

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Date Check Array

    f6=COUNTIFS(B4:B23,">"&TODAY()-30,C4:C23,"")
    =COUNTIFS(B4:B23,">"&TODAY()-30,C4:C23,"")
    g6=COUNTIFS(B4:B23,">="&TODAY()-60,B4:B23,"<="&TODAY()-30,C4:C23,"")
    =COUNTIFS(B4:B23,">="&TODAY()-60,B4:B23,"<="&TODAY()-30,C4:C23,"")
    h6=COUNTIFS(B4:B23,"<"&TODAY()-60,C4:C23,"")
    =COUNTIFS(B4:B23,"<"&TODAY()-60,C4:C23,"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Re: Date Check Array

    Siva,

    Thanks for that. So it looks like I was making it too complicated by pointing to a cell with todays date in instead of just writing the reference in the formula. A much simpler solution.

    Thanks,

    Ed

  4. #4
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Re: Date Check Array

    Siva,

    Is there a way of doing the same count for those items that have been closed? ie how many were closed within 30 days, between 30 and 60 etc....

    Ed

+ 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. Finding Vacancy Percentage Month Wise from Check in and Check out Date
    By HemZone in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-29-2015, 10:51 AM
  2. Userform to check 2 textboxes for duplicate & date check
    By LadyAlina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2015, 09:26 AM
  3. check if value is in array
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2014, 09:08 AM
  4. Question re Array Formulas to Check Date Ranges from multiple columns
    By SouthpawInRelief in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2013, 02:23 PM
  5. [SOLVED] Range to array, then check to see if the array contains a string
    By yeahyeahyeah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2012, 12:17 PM
  6. Check value in a array sum
    By johnny_martins00 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 12-15-2011, 07:11 AM
  7. Replies: 2
    Last Post: 02-02-2011, 06:47 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