Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andrewc
 
Posts: n/a
Default A weekly equivalent of EOMONTH


Hi,

I use the EOMONTH function to return the dates 1 month, 3 months etc
back from a base date. Can someone please tell me how to do the same
using a specified number of weeks rather than months.

For example, if the base date is 23/02/06, what is the date at the end
of the previous week if one defines the end of a week as a Friday?

Any help would be much appreciated.

Regards,
Andrew


--
andrewc
------------------------------------------------------------------------
andrewc's Profile: http://www.excelforum.com/member.php...o&userid=19613
View this thread: http://www.excelforum.com/showthread...hreadid=515738

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default A weekly equivalent of EOMONTH

=A1-CHOOSE(WEEKDAY(A1),1,2,3,4,5,0,1)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"andrewc" wrote in
message ...

Hi,

I use the EOMONTH function to return the dates 1 month, 3 months etc
back from a base date. Can someone please tell me how to do the same
using a specified number of weeks rather than months.

For example, if the base date is 23/02/06, what is the date at the end
of the previous week if one defines the end of a week as a Friday?

Any help would be much appreciated.

Regards,
Andrew


--
andrewc
------------------------------------------------------------------------
andrewc's Profile:

http://www.excelforum.com/member.php...o&userid=19613
View this thread: http://www.excelforum.com/showthread...hreadid=515738



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default A weekly equivalent of EOMONTH

Assume date is in A1, in B1 you put -1 for previous week, 0 for this week 1
for next week and so on

so if you put -1 in B1

=A1+(6-WEEKDAY(A1))+B1*7

formatted as date returns Feb 17 2006


now if you put the Saturday Feb 25 in A1 and -1 it will return Feb 24 2006
so if your dates are weekends you have to adjust the formula a bit and text
for weekend dates but as long as the dates are weekdays it will work as in
the example, put 4 in B1 and it will return Mar 24th 2006 (next Friday 4
weeks from Feb 23 2006)
--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"andrewc" wrote in
message ...

Hi,

I use the EOMONTH function to return the dates 1 month, 3 months etc
back from a base date. Can someone please tell me how to do the same
using a specified number of weeks rather than months.

For example, if the base date is 23/02/06, what is the date at the end
of the previous week if one defines the end of a week as a Friday?

Any help would be much appreciated.

Regards,
Andrew


--
andrewc
------------------------------------------------------------------------
andrewc's Profile:
http://www.excelforum.com/member.php...o&userid=19613
View this thread: http://www.excelforum.com/showthread...hreadid=515738


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andrewc
 
Posts: n/a
Default A weekly equivalent of EOMONTH


Thank you all!!!


--
andrewc
------------------------------------------------------------------------
andrewc's Profile: http://www.excelforum.com/member.php...o&userid=19613
View this thread: http://www.excelforum.com/showthread...hreadid=515738

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
Problem calculating weekly costs Handyy Excel Worksheet Functions 4 January 30th 06 08:19 PM
weekly chore list for 2 kids Blondie Excel Discussion (Misc queries) 1 January 28th 06 11:22 PM
Collecting weekly and monthly totals from daily data Kasper Excel Worksheet Functions 0 January 12th 06 08:02 PM
Weekly and Monthly Subtotals ChuckW Excel Discussion (Misc queries) 3 September 2nd 05 09:58 PM
Accumulate weekly time to total time in Excel. delve Excel Discussion (Misc queries) 0 May 4th 05 08:14 PM


All times are GMT +1. The time now is 01:09 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"