find the Monday or Wednsday before a date in excel -


i have list of assignments in excel 2010. each has due date. assignment must submitted external processing 3 working days before due date. before assignment can sent external processing, must reviewed. submissions review on mondays , wednesday.

i want function looks @ date in due date cell , returns date of monday or wednesday (which ever closer) before date 3 workdays before date;

x = (3 workdays before due date)

submit date = (monday or wednesday before x)

i got x thus; =workday.intl(<due date cell>,-3)

now need code submit date.

if due date monday 3 workdays before previous wednesday can have review on wednesday or need monday before that? if it's latter can use workday , workday.intl assuming due date in a2

=workday.intl(workday(a2,-3),-1,"0101111")

if it's former make -3 -2

with approach use workday go 2 or 3 workdays , workday.intl uses "0101111" indicate mon , wed working days , subtracts further day on basis

this method can used number of days - latter number remains -1


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -