Consulting

Results 1 to 3 of 3

Thread: Date / Business Date

  1. #1

    Date / Business Date

    Hi All

    I am banging my head against a wall, for something i believe is relatively simple.

    '=IF(BQ161694=TODAY()-1,"use","ignore")'
    I am using the above code, which will work fine Tuesday - Friday to advise if the value in BQ is yesterday, but i need to adapt it to expand the scope on monday, to ask BQ on monday if -1 is a friday.

    I hope that makes sense :-)

    Thanks.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    You want the Workday function
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I would just use

    =IF(BQ161694=TODAY()-IF(WEEKDAY(TODAY())=2,3,1),"use","ignore")
    ____________________________________________
    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

Posting Permissions

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