Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem calculating weekly costs | Excel Worksheet Functions | |||
weekly chore list for 2 kids | Excel Discussion (Misc queries) | |||
Collecting weekly and monthly totals from daily data | Excel Worksheet Functions | |||
Weekly and Monthly Subtotals | Excel Discussion (Misc queries) | |||
Accumulate weekly time to total time in Excel. | Excel Discussion (Misc queries) |