Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nmorse
 
Posts: n/a
Default Simple? Formula for "for the week starting Monday May Xxth"


So, I thought I had this down - but started up the file today only to
find that the date is a week off... I don't know why - it was fine all
last week.

Here's the formula I have currently:


Code:
--------------------
=B2+(WEEKDAY(B2)=N2)*7-WEEKDAY(B2)+N2
--------------------


Where N2 is the number 2 (for Monday) and B2 is
Code:
--------------------
today()
--------------------
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Simple? Formula for "for the week starting Monday May Xxth"

To find the current/next Monday

=TODAY()-WEEKDAY(TODAY()-2)+7

will return 03/27/06 today and tomorrow 04/03/06

If you want current/previous Monday

=TODAY()-WEEKDAY(TODAY()-1)+1

btw is there a reason you put today() in B2 and not directly in the formula?


--

Regards,

Peo Sjoblom


"nmorse" wrote in
message ...

So, I thought I had this down - but started up the file today only to
find that the date is a week off... I don't know why - it was fine all
last week.

Here's the formula I have currently:


Code:
--------------------
=B2+(WEEKDAY(B2)=N2)*7-WEEKDAY(B2)+N2
--------------------


Where N2 is the number 2 (for Monday) and B2 is
Code:
--------------------
today()
--------------------
.

What I'm trying to get it to do is, based on B2, say that this
particular log is for the entire week beginning Monday, March 27th.
Then, on Monday April 3rd, it would turn to say "for the week beginning
Monday April 3rd", etc.

Any ideas?

Thanks.


--
nmorse
------------------------------------------------------------------------
nmorse's Profile:
http://www.excelforum.com/member.php...o&userid=32875
View this thread: http://www.excelforum.com/showthread...hreadid=526787



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nmorse
 
Posts: n/a
Default Simple? Formula for "for the week starting Monday May Xxth"


Thank you. I'll try that.

As for why I was calling it from B2 -- well, B2 is a today() formula,
so just thought I'd pull it from there... But this should work just
fine, I think.


--
nmorse
------------------------------------------------------------------------
nmorse's Profile: http://www.excelforum.com/member.php...o&userid=32875
View this thread: http://www.excelforum.com/showthread...hreadid=526787

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
4 and 5 week months Big Rick Excel Discussion (Misc queries) 15 November 7th 05 12:32 AM
Dates by week, formula appeng Excel Worksheet Functions 5 February 6th 05 10:48 PM
4 Day Work Week in a formula EasleyK Excel Discussion (Misc queries) 1 January 29th 05 06:15 AM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM


All times are GMT +1. The time now is 06:27 PM.

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"