+ Reply to Thread
Results 1 to 7 of 7

Use todays date as criteria to select workdays older than 2 days.

  1. #1
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Use todays date as criteria to select workdays older than 2 days.

    I have a spreadsheet which has several rows of data. Each row has, in column A, the date the data is entered.

    I would like to use this date information to select the rows which were entered over 2 days ago, but only using monday - friday.

    I have tried using WORKDAYS and NETWORKDAYS functions, but since these need to be installed via the analysis add in and the workbook is going to be used by different people on different PC's, I was wondering if there was an alternative.

    Thanks in advance.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Use todays date as criteria to select workdays older than 2 days.

    Which is your XL versiion?

  3. #3
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Use todays date as criteria to select workdays older than 2 days.

    Quote Originally Posted by Pepe Le Mokko View Post
    Which is your XL versiion?
    excel 2003

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Use todays date as criteria to select workdays older than 2 days.

    To count the number of days, without week ends you can use the following array formula
    Please Login or Register  to view this content.
    where A1 is the date when data was entered

    This formula does not account for holidays and should be committed with Ctrl+Shift+Enter

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

    Re: Use todays date as criteria to select workdays older than 2 days.

    This formula will replicate networkdays without holidays considered

    =SUM(INT((WEEKDAY(A2-{2,3,4,5,6})+TODAY()-A2)/7))

    that's the equivalent of

    =NETWORKDAYS(A2,TODAY())
    Audere est facere

  6. #6
    Registered User
    Join Date
    01-07-2004
    Location
    Manchester UK
    MS-Off Ver
    Office 2010
    Posts
    73

    Re: Use todays date as criteria to select workdays older than 2 days.

    Thanks for the help. What is the best way to use this new formula?

    I have a macro which loops through every row in a worksheet, and then copies the row to a summary sheet if it is over 2 days old.

    I was going to add the formula to the end of each row. This will display how many days old the row is, and therefore decide wether the row needed to be copied.

    Heres what I have so far. It seems to work OK but I wondered if there were a better way to do it.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Use todays date as criteria to select workdays older than 2 days.

    Please start a new thread

+ 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