View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default changing dates and years with less keystrokes

Try this formula instead in A2:

=IF(WEEKDAY(A1)=6,A1+3,A1+1)

and then copy it down. This will give you the days in sequence, but
will jump from Friday to the next Monday, so again, all you will need
to do is change the date in A1 to the first working day of the year
and the formulae will do the rest.

Saves all that typing.

Hope this helps.

Pete


On Jan 19, 1:15*am, Dick C wrote:
Thanks for ur help Pete. *The formula is very good if I don't have the name
of the days in the block or if I include Sat/Sunday. *I need to have Monday
01/21/2008 in A1, then Tuesday 01/22/2008 in A2 and Wednesday 01/23/2008 in
A3 etc. *I will only be using Monday through Friday as there are only 5
trading days. *So picture all the days and dates in the A column (from
1/21/08 down through 12/31/2008. *Then when next Jan arrives I want to change
the dates to line up with the days of the week in 2009. *For instance if I
had started this year on Tuesday 01/01/2008, then is there an easy way for me
to click a space to change to 01/01/2009 and have the day be Thursday - which
the first falls on next year? *This is difficult to explain I know and I'm
just not sure it can be done. *But give it a go and let me know if you think
that it can. *If not, it's OK I'll just type it all in again, but it sure
takes a long, long time. *



"Pete_UK" wrote:
With the date in A1, you can put this formula in A2:


=A1+1


which will add one day on to the previous day. Copy this formula down
and you will have all your dates for the whole year. You only need to
change the date in A1 to have a knock-on effect on the other dates.


Hope this helps.


Pete


On Jan 18, 5:27 pm, Dick C wrote:
I am setting up a spreadsheet of investments. *The first column (A, row 1)
has Monday 01/21/2008, the next row (column A, row 2) is Tuesday 01/22/08 and
so forth through the end of the year (Wednesday 12/31/2008). *It takes a long
time to set all that up. *I'm now wondering if the dates can be automatically
changed - say from Monday 01/21 to Monday 01/19 and the years change from
2008 to 2009? *Can that be done without my having to input all the dates
again for next year? *Thanks for any help you can give?- Hide quoted text -


- Show quoted text -