Limit TODAY() to weekdays only

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...
 
G

Guest

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
 
S

Sandy

Use networkdays ie:

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


Sandy
 
G

Guest

Try something like this:

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

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

XL2002, WinXP
 
B

Bob Phillips

=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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top