Auto Create Weekly Date Range Base On a Date

Kintantay

Board Regular
Joined
Nov 4, 2002
Messages
80
In column A I have dates 08/01/2011 to 11/30/2011. Is there a formula that will look at the date in cell and return a date range in column B. Eg. Column A has
A1 08/01/2011
A2 08/10/2011
A3 08/22/2011
Column B should return
B1 08/01/2011 – 08/05/2011
B2 08/08/2011 – 08/12/2011
B3 08/22/2011 - 08/26/2011

Is this possible?

Thanks in advance

Kin
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Like so?
Excel Workbook
AB
18/1/201108/01/2011 - 08/05/2011
28/10/201108/10/2011 - 08/14/2011
38/22/201108/22/2011 - 08/26/2011
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B1=TEXT(A1,"mm/dd/yyyy")& " - " & TEXT(A1+4,"mm/dd/yyyy")
 
Upvote 0
Thanks for your timely response. I entered the formula and it worked however it doesnt give the same affect for other dates within that range. I'm trying to achieve this:

8/1/2011 08/01/2011 - 08/05/2011
8/2/2011 08/01/2011 - 08/05/2011
8/9/2011 08/08/2011 - 08/12/2011
8/10/2011 08/08/2011 - 08/12/2011
8/15/2011 08/15/2011 - 08/19/2011
8/16/2011 08/15/2011 - 08/19/2011
8/17/2011 08/15/2011 - 08/19/2011
 
Upvote 0
Thanks for your timely response. I entered the formula and it worked however it doesnt give the same affect for other dates within that range. I'm trying to achieve this:

8/1/2011 08/01/2011 - 08/05/2011
8/2/2011 08/01/2011 - 08/05/2011
8/9/2011 08/08/2011 - 08/12/2011
8/10/2011 08/08/2011 - 08/12/2011
8/15/2011 08/15/2011 - 08/19/2011
8/16/2011 08/15/2011 - 08/19/2011
8/17/2011 08/15/2011 - 08/19/2011
Will the dates in column A always be weekday (Monday thru Friday) dates?

What day does your week start? Is it Monday or Sunday?
 
Upvote 0
The dates in column a will always be a weekday. Crazy as it sounds, the week begins on Saturday and end on a Friday. I didnt want to cause any confusion so I elected to omit that bit of information.
 
Upvote 0
The dates in column a will always be a weekday. Crazy as it sounds, the week begins on Saturday and end on a Friday. I didnt want to cause any confusion so I elected to omit that bit of information.
Try this...

=TEXT(A1-WEEKDAY(A1,2)+1,"m/d/yyyy")&" - "&TEXT(A1-WEEKDAY(A1,2)+5,"m/d/yyyy")
 
Upvote 0
"I didnt want to cause any confusion so I elected to omit that bit of information."

probably not a good practice. JMay
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top