Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JLyons
 
Posts: n/a
Default Starting work period on a Saturday and ending on a friday

I am trying to get this formula to start the work period on a saturday and
end on a friday (rather than the normal week of Sunday thru Saturday)

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1)+1,"mmmm d")&" -
"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

As is it starts on Sunday and ends on saturday. I tried changing the +1 to a
-1, but that didn't work.
What do I need to change to make this happen?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1),"mmmm
d")&" -"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JLyons" wrote in message
...
I am trying to get this formula to start the work period on a saturday and
end on a friday (rather than the normal week of Sunday thru Saturday)

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1)+1,"mmmm d")&" -
"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

As is it starts on Sunday and ends on saturday. I tried changing the +1 to

a
-1, but that didn't work.
What do I need to change to make this happen?



  #3   Report Post  
BobT
 
Posts: n/a
Default

The previous shows a 2 week work period that changes every
week.

Try this
="Work Period "&TEXT(TODAY()-MOD(TODAY(),14)+7*IF(MOD(TODAY
(),14)<7,-1,1),"mmmm d")&" - "&TEXT(TODAY()-MOD(TODAY(),14)
+7*IF(MOD(TODAY(),14)<7,-1,1)+13,"mmmm d, yyyy")

This one is based on the 1/1/1900 date system.
If you don't like that, you can also use Iseven or Isodd
functions to determine what week your new work period
begins, but is an even longer function.


-----Original Message-----
="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1),"mmmm
d")&" -"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d,

yyyy")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JLyons" wrote in

message
...
I am trying to get this formula to start the work

period on a saturday and
end on a friday (rather than the normal week of Sunday

thru Saturday)

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1)+1,"mmmm

d")&" -
"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

As is it starts on Sunday and ends on saturday. I tried

changing the +1 to
a
-1, but that didn't work.
What do I need to change to make this happen?



.

  #4   Report Post  
JLyons
 
Posts: n/a
Default

Thanks Bob that worked great.

Is there any way of stopping the dates from changing to the next period once
the document has been created and we move into the next period?

"Bob Phillips" wrote:

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1),"mmmm
d")&" -"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JLyons" wrote in message
...
I am trying to get this formula to start the work period on a saturday and
end on a friday (rather than the normal week of Sunday thru Saturday)

="Work Period "&TEXT(TODAY()-WEEKDAY(TODAY(),1)+1,"mmmm d")&" -
"&TEXT(TODAY()-WEEKDAY(TODAY(),1)+14,"mmmm d, yyyy")

As is it starts on Sunday and ends on saturday. I tried changing the +1 to

a
-1, but that didn't work.
What do I need to change to make this happen?




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
Starting work period on a Saturday and ending on a friday JLyons Excel Discussion (Misc queries) 1 February 17th 05 03:28 PM


All times are GMT +1. The time now is 03:47 AM.

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

About Us

"It's about Microsoft Excel"