Consulting

Results 1 to 3 of 3

Thread: Help with formula please

  1. #1

    Help with formula please

    Hi

    Using the following formula highlight if the 2 dates are more than 2 days apart.

    =IF(G276="", "", IF(G276=F276, "Yes", IF(G276=F276+1, "Yes", IF(G276=F276+2, "Yes", "No"))))

    However I need it to ignore weekends - can't figure out how to do it. So if 30/5 & 2/6 it should
    return Yes rather tan No.

    Any help appreciated.

    thanks


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =IF(G2="","",IF(NETWORKDAYS(F2,G2)>2,"Yes","No"))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Thanks Bob,

    Works like a dream.

    regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •