Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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") |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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") |
#5
![]() |
|||
|
|||
![]()
Yes, it is possible to create a continuous date range in Excel. Here are the steps to achieve this:
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF with non-continuous range | Excel Discussion (Misc queries) | |||
maximum over a non continuous range | Excel Worksheet Functions | |||
Create a formula in a date range to locate a specific date - ecel | Excel Discussion (Misc queries) | |||
SUMIF Non-Continuous Range | Excel Worksheet Functions | |||
Sum function for non-continuous range | Excel Worksheet Functions |