RE: Help change Friday to following Monday

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



This works under limited conditions, but fails to satisfy my requirements:
If the 17th falls outside the weekend (M-F), leave it as the 17th. It
instead *always* returns the following Monday.

Thanks for the effort anyway.

--
David

=?Utf-8?B?U2ltb25DQw==?= wrote

Try:
=DATE(YEAR(NOW()),MONTH(NOW()),17)+8-WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW
()),17),2)

-Simon

"David" wrote:

XL2000
I currently use the following formula to return the Friday before the
17th of the month if the 17th falls on a weekend:

=DATE(YEAR(NOW()),MONTH(NOW()),17)-MAX(0,WEEKDAY(DATE(YEAR(NOW()),MONT
H(NOW ()),17),2)-5)
(Excuse the wrapping, please)

What I would like instead, is a formula to return the date of the
following Monday if the 17th falls on a weekend. I don't want to use
the Workday() function, because the file will often be viewed on
machines that don't have the Analysis Toolpak available.

Simple for someone who knows how(?), but not for me :(

--
David


.



Relevant Pages

  • Re: Smooth Interpolations
    ... the z_n will not satisfy and ... >> David C. Ullrich ... >Thank you very much for your attention. ...
    (sci.math)
  • Re: Using CImage?
    ... I'll try GetLastError as David suggests, and also I'll experiment with a different hBitmap. ... (I got a CImageList from a CToolbarCtrl, and then got an icon from the image list, and then got the hBitmap from the icon. ... The Gdiplus::Bitmap can be created directly from an hIcon, and I've tried that too, but trying to save it fails in the same way.) ...
    (microsoft.public.vc.mfc)
  • Re: 12-13 update install failure
    ... Thanks for the suggestion. ... > Hi David, ... If it fails, maybe the log will be small and can be sent." ... > install them one at a time, leaving a few minutes between each. ...
    (microsoft.public.windowsupdate)
  • Re: linux-next: Tree for November 2 (usb/whci)
    ... whci build fails on i386 due to 64-bit multiply & divide: ... David, can you please look into this and resolve it? ...
    (Linux-Kernel)
  • Re: Night owl smoking 12/27/08
    ... Finishing my day with a bowl of PS Balkan Supreme in a trusty Castello ... that never fails to satisfy. ...
    (alt.smokers.pipes)