excel - How to reintroduce weekend days into a date difference that is currently calculated on weekdays? -


this question knowledge isn't duplicate - i've looked around , haven't found exact question. question this: using today's date , number of days (that's measure of weekdays origin date) want find number of total days (including weekend days) between today , previous date. i'm assuming m-f weekdays , sa-su weekend days. want add in weekend days count backward towards origin date can figure out true origin date is. example:

origin date    # weekdays    today's date     ??              5          8/7/2015     ??              20         8/7/2015     ??              100        8/7/2015     etc... 

this need dynamic solution since today's date change. answer needs in excel because client uses/understands excel.

i don't want approximate solution (e.g. # weekdays * 7/5) understand lack of exact answer in instances origin date occurs on weekend. in these cases, i'm willing round monday. realize may beyond powers of excel interested see if of have solution.

the native workday function or workday.intl function can count backwards forwards.

        count workday backwards

the formula in a2 is,

=workday(c2, -b2) 

i've used older workday there expanded weekend options workday.intl (click on links above documentation).


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -