Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Limit TODAY() to weekdays only

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...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Limit TODAY() to weekdays only

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


"CharlieS" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 156
Default Limit TODAY() to weekdays only

Use networkdays ie:

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


Sandy


CharlieS wrote:
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...


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Limit TODAY() to weekdays only

Try something like this:

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

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

XL2002, WinXP


"CharlieS" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 380
Default Limit TODAY() to weekdays only

=WORKDAY(TODAY(),-1)

WORKDAY is part of the Analysis Toolpak, so it must be installed
(ToolsAddins)

--

HTH

Bob Phillips

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

"CharlieS" wrote in message
...
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...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table row fields limit vs. number of rows in use for Excel 2 VP needs help Excel Discussion (Misc queries) 3 October 11th 06 08:11 PM
Count occurence with user defined upper&lower limit. Chan Excel Worksheet Functions 4 August 18th 06 05:34 AM
Worksheet Limit Jonathan Cooper Excel Discussion (Misc queries) 0 February 4th 06 08:07 PM
sum limit and marking Sum Limit and marking Excel Worksheet Functions 1 December 20th 05 01:01 PM
Make the row limit of excel flexible -not fixed at 65536. quadfan Excel Discussion (Misc queries) 1 December 1st 05 02:10 AM


All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"