Date Formula

srodkin

Board Regular
Joined
Jan 13, 2006
Messages
76
Hi Everyone,

I am trying to create a date range for a work week. For example:

A1 4/18-4/22
B1 4/25-4/29

Is there a formula that will allow me to do this instead of physically typing in the weekly date range? I am currently using Excel 2007

Thank you
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
The easiest answer would be to use 2 cells otherwise you would have to do some real manipulating and hard formulas.

If you had in A1 4/18/2011 and in B1 4/22/2011 then C1 would be A1+7 and D1+7 etc. etc.

Michael D
 
Upvote 0
Hi Everyone,

I am trying to create a date range for a work week. For example:

A1 4/18-4/22
B1 4/25-4/29

Is there a formula that will allow me to do this instead of physically typing in the weekly date range? I am currently using Excel 2007

Thank you
Enter this first week in A1:

4/18 - 4/22

Enter this formula in B1 and copy across as needed:

=TEXT(LEFT(A1,FIND(" ",A1)-1)+7,"m/d")&" - "&TEXT(LEFT(A1,FIND(" ",A1)-1)+11,"m/d")
 
Upvote 0
Place a start date in a n unused cell . Say A3. In A1, enter this formula
Code:
=TEXT($A$3+(COLUMN()-1)*7,"m/d/yy") & "--" & TEXT($A$3+(COLUMN()-1)*7+6,"m/d/yy")
and copy across. WHne done, paste special>values. You can now clear A3

lenze
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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