Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How create a continuous date range: 9/14-9/20/09, 9/21-9/27/09

I would like to be able to type in a cell a date range such as a week: for
example: 9/14 - 9/20/09, and in the next cell type the next date range, being
the following week: for example: 9/21 - 9/27/09. Then highlight both cells
and have Excel calculate the rest of the continuous weekly date ranges for
the rest of the year. Is this possible in Excel?
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How create a continuous date range: 9/14-9/20/09, 9/21-9/27/09

Yes, it is possible to create a continuous date range in Excel. Here are the steps to achieve this:
  1. Type the first date range in two separate cells. For example, in cell A1, type 9/14/09 and in cell B1, type 9/20/09.
  2. Type the second date range in two separate cells, below the first date range. For example, in cell A2, type 9/21/09 and in cell B2, type 9/27/09.
  3. Select both cells containing the first date range (A1:B1) and the second date range (A2:B2).
  4. Click and drag the fill handle (a small square at the bottom right corner of the selection) down the column to automatically fill in the continuous date ranges for the rest of the year.
  5. If the dates do not continue to fill in, right-click on the fill handle and select "Fill Series" from the drop-down menu.
  6. If you want to change the date range to a different week, simply type the new dates in the appropriate cells and repeat steps 3-5.

By following these steps, you can easily create a continuous date range in Excel and have it automatically fill in for the rest of the year.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How create a continuous date range: 9/14-9/20/09, 9/21-9/27/09

You would be able to do this by enteriong a single starting date. For example, enter 9/14 as a date
into cell A2, then use this formula somewhere else:

=TEXT($A$2+7*(ROWS($A$1:A1)-1),"m/d - ") & TEXT($A$2+7*(ROWS($A$1:A1)-1) +6,"m/d/yyyy")

and copy down as far as you need.

Change the two references to $A$2 to the cell where you enter your starting date, using the $ $
style....

HTH,
Bernie
MS Excel MVP


"Sundance" wrote in message
...
I would like to be able to type in a cell a date range such as a week: for
example: 9/14 - 9/20/09, and in the next cell type the next date range, being
the following week: for example: 9/21 - 9/27/09. Then highlight both cells
and have Excel calculate the rest of the continuous weekly date ranges for
the rest of the year. Is this possible in Excel?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default How create a continuous date range: 9/14-9/20/09, 9/21-9/27/09

Sundance wrote:
I would like to be able to type in a cell a date range such as a week: for
example: 9/14 - 9/20/09, and in the next cell type the next date range, being
the following week: for example: 9/21 - 9/27/09. Then highlight both cells
and have Excel calculate the rest of the continuous weekly date ranges for
the rest of the year. Is this possible in Excel?


With just "9/14 - 9/20/09" in A1, put this in then "next cell" and copy across/down:


=TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+1,"m/d")
&" - "&TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+7,"m/d/y")
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How create a continuous date range: 9/14-9/20/09, 9/21-9/27/0

=TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+1,"m/d")
&" - "&TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+7,"m/d/y")


You can make formula shorter by remove "DATEVALUE".

=TEXT(MID(A1,FIND("-",A1)+2,8)+1,"m/d")&" -
"&TEXT(MID(A1,FIND("-",A1)+2,8)+7,"m/d/y")


"Glenn" wrote:

Sundance wrote:
I would like to be able to type in a cell a date range such as a week: for
example: 9/14 - 9/20/09, and in the next cell type the next date range, being
the following week: for example: 9/21 - 9/27/09. Then highlight both cells
and have Excel calculate the rest of the continuous weekly date ranges for
the rest of the year. Is this possible in Excel?


With just "9/14 - 9/20/09" in A1, put this in then "next cell" and copy across/down:


=TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+1,"m/d")
&" - "&TEXT(DATEVALUE(MID(A1,FIND("-",A1)+2,8))+7,"m/d/y")

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
COUNTIF with non-continuous range Ken Excel Discussion (Misc queries) 2 April 6th 09 10:33 PM
maximum over a non continuous range david Excel Worksheet Functions 6 October 2nd 07 04:14 PM
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 04:03 PM
SUMIF Non-Continuous Range Kirk P. Excel Worksheet Functions 2 October 13th 06 09:46 PM
Sum function for non-continuous range Antje Excel Worksheet Functions 3 July 14th 05 01:13 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"