Limit TODAY() to weekdays only

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to make TODAY() only inlcude weekdays never weekends. I need to set
up a formula that will show yesterday's date, but I don't want it to ever
give me the weekend. I am only interested in weekdays... Any suggestions?
+TODAY()-1 gives me yesterady but will return the weekend, I don't want to
have to say =TODAY()-3, because it's only minus 3 on Friday...
 
Try this:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

This checks to see if today is Monday, if so, then subtract 3 days, if not,
subtract 1 day.

HTH,
Elkar
 
Use networkdays ie:

=NETWORKDAYS(TODAY(),TODAY()-1) gives the number of work week days
including today if today (monday) it will return 2


Sandy
 
Try something like this:

=TODAY()-1-MAX(WEEKDAY(TODAY()-1,2)-5,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
=WORKDAY(TODAY(),-1)

WORKDAY is part of the Analysis Toolpak, so it must be installed
(Tools>Addins)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
Back
Top