Here's an extract of a post to you from a couple of days ago:
"...
Anyway, if you do (want to split by year) then put the start date in A1 and
the final date in
B1 (or get your Users to do so), and then put the following formulae
in the cells stated below:
A2: =IF(A1="","",A1)
B2: =IF(A2="","",IF(DATE(YEAR(A2),12,31)>B$1,B$1,DATE(YEAR(A2),
12,31)))
A3: =IF(OR(A2="",B2=B$1),"",DATE(YEAR(A2)+1,1,1))
Copy B2 into B3, and then copy A3:B3 down into as many cells as you
feel you need. All of the cells in columns A and B should be formatted
as a date in the format you prefer.
The other formulae I gave you will still work with this set up, so
they can be copied down the same number of rows as your date formulae.
Note that I have used the approach outlined in your first post, i.e.
listing the oldest dates first, rather than in your latest posting
which lists the most recent dates first.
So now your Users only have to enter the start date into A1 and the
final end date into B1 and the rest of it will automatically appear.
I hope this is finally what you want.
Pete
.... "
Presumably you did not get this, as it does what you ask for.
Hope this helps.
Pete
904allen said:
Yes Pete and thanks but what i'm after is a way that all the user has to
do
is enter the to and from date once. 3/1/05 to 3/1/08 it doesn' matter if
its
increasing or decreasing, the formula you supply is a lot shorter then the
way i was originally doing it but but your formula and the old way i was
doing it reguires the user to enter in the dates for all the years I'm try
to
aviod that if they just can enter the date in once.
Pete_UK said:
So, it's got to be in decreasing order? Did you see the solution I
gave you for increasing order?
Pete
On Mar 28, 8:54 am, 904allen <
[email protected]>
wrote:
Dates Range need Help
Example
[A1 has date 3/1/08] [B1 has date 3/1/05} date between A1 and B1 will
never
be more than 3 years. How do I get Excel list
A2=1/1/08 B2=3/1/08 or A2=3/1/08 B2=1/1/08
A3=12/31/07 B2=1/1/07 or A3=1/1/07 B3=12`/31/07
A4=12/31/06 B4=1/1/06 or A4=1/1/06 B3=12/31/06
A5=3/1/05 B5=12/31/05 or A5=1/1/05 B5=3/1/05
As stated the dates in A1 to B2 will never be more then 3 years but can
be
any date between 3 years. As you can see I have to have excel list each
year
by date