Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default calculating weekday date

I need to calculate a date 10 days from a start date that, if the final date
is a Sat, the result defaults to the previous Fri, or, if the final date is a
Sun, the result defaults to a Mon. Is this possible? I use 2003. Thanks for
your help. In your response, remember I am a novice and need a little extra
explanation. :)
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default calculating weekday date

On Tue, 10 Jun 2008 19:23:01 -0700, Khardy3352
wrote:

I need to calculate a date 10 days from a start date that, if the final date
is a Sat, the result defaults to the previous Fri, or, if the final date is a
Sun, the result defaults to a Mon. Is this possible? I use 2003. Thanks for
your help. In your response, remember I am a novice and need a little extra
explanation. :)



With your original date in A1:

=A1+10+(WEEKDAY(A1+10)=1)-(WEEKDAY(A1+10)=7)

or, a bit more obscure, but shorter:

=A1+10+(WEEKDAY(A1)=5)-(WEEKDAY(A1)=4)

--ron
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default calculating weekday date


Excellent! Thank you!!!
"Ron Rosenfeld" wrote:

On Tue, 10 Jun 2008 19:23:01 -0700, Khardy3352
wrote:

I need to calculate a date 10 days from a start date that, if the final date
is a Sat, the result defaults to the previous Fri, or, if the final date is a
Sun, the result defaults to a Mon. Is this possible? I use 2003. Thanks for
your help. In your response, remember I am a novice and need a little extra
explanation. :)



With your original date in A1:

=A1+10+(WEEKDAY(A1+10)=1)-(WEEKDAY(A1+10)=7)

or, a bit more obscure, but shorter:

=A1+10+(WEEKDAY(A1)=5)-(WEEKDAY(A1)=4)

--ron

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default calculating weekday date

On Tue, 10 Jun 2008 20:36:00 -0700, Khardy3352
wrote:

Excellent! Thank you!!!
"Ron Rosenfeld" wrote:


You're welcome. Glad to help. Thanks for the feedback.
--ron
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
convert weekday date to the next sunday date Oldersox Excel Worksheet Functions 2 January 8th 07 11:26 AM
WEEKDAY() function: display TEXT not numeric weekday tom Excel Discussion (Misc queries) 3 November 21st 06 04:32 PM
MATCHING DATE TO A WEEKDAY Stuart Carnachan Excel Worksheet Functions 3 October 31st 06 05:19 PM
Weekday formula calculating to end of month DebbieK Excel Worksheet Functions 0 July 26th 06 08:08 PM
Show Weekday with date??? Rutgers_Excels Excel Discussion (Misc queries) 3 April 5th 06 03:44 PM


All times are GMT +1. The time now is 01:12 AM.

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"