+ Reply to Thread
Results 1 to 5 of 5

Flagging tasks using Networkdays

  1. #1
    Ross
    Guest

    Flagging tasks using Networkdays

    Hi,
    I am using a formula:
    =IF(IF(D8="",TODAY(),D8)>(C8+2),"Red",IF(IF(D8="",TODAY(),D8)>=(C8+1),"Amber",""))

    Column C contains dates & time received, column D date and time sent. If
    date sent is empty it works on today(). We have two working days to allocate
    tasks. However the formula results in ""Red" if i receive something on a
    friday but do not send it till monday. Can anyone give me a clue how to add
    networkdaay funtionality to this.
    Many thanks,
    Ross


  2. #2
    Niek Otten
    Guest

    Re: Flagging tasks using Networkdays

    Hi Ross,

    You need WORKDAY() functionality, not NETWORKDAYS().
    =WORKDAY(a1,1)
    Format as date

    --
    Kind regards,

    Niek Otten


    "Ross" <[email protected]> wrote in message news:[email protected]...
    > Hi,
    > I am using a formula:
    > =IF(IF(D8="",TODAY(),D8)>(C8+2),"Red",IF(IF(D8="",TODAY(),D8)>=(C8+1),"Amber",""))
    >
    > Column C contains dates & time received, column D date and time sent. If
    > date sent is empty it works on today(). We have two working days to allocate
    > tasks. However the formula results in ""Red" if i receive something on a
    > friday but do not send it till monday. Can anyone give me a clue how to add
    > networkdaay funtionality to this.
    > Many thanks,
    > Ross
    >




  3. #3
    Bob Phillips
    Guest

    Re: Flagging tasks using Networkdays

    =VLOOKUP(INT(IF(D8="",TODAY(),D8)-(C8+2+(WEEKDAY(C8)=6)*2+(WEEKDAY(C8)=5)*2)
    ),{0,"";1,"Amber";2,"Red"},2)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Ross" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    > I am using a formula:
    >

    =IF(IF(D8="",TODAY(),D8)>(C8+2),"Red",IF(IF(D8="",TODAY(),D8)>=(C8+1),"Amber
    ",""))
    >
    > Column C contains dates & time received, column D date and time sent. If
    > date sent is empty it works on today(). We have two working days to

    allocate
    > tasks. However the formula results in ""Red" if i receive something on a
    > friday but do not send it till monday. Can anyone give me a clue how to

    add
    > networkdaay funtionality to this.
    > Many thanks,
    > Ross
    >




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

    =IF(C8="","",LOOKUP(NETWORKDAYS(C8,IF(D8,D8,TODAY())),{0,2,4;"","Amber","Red"}))

  5. #5
    Ross
    Guest

    Re: Flagging tasks using Networkdays

    Thank you, this is very helpful.
    Ross

    "daddylonglegs" wrote:

    >
    > Try this
    >
    > =IF(C8="","",LOOKUP(NETWORKDAYS(C8,IF(D8,D8,TODAY())),{0,2,4;"","Amber","Red"}))
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=521681
    >
    >


+ 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