Search : in
By :

Update dates in excel spreadsheet each year

Last answer on Nov 9, 2009 12:38:25 am GMT romeohotel, on Nov 7, 2009 10:15:14 pm GMT 
 Report this message to moderators

Hello,
i have 4 spreadsheets linked together which i use to keep track of my accounts.

all 4 spreadsheets are in one folder.

On each spreadsheet i have the date mon to sun with a weekly total underneath for each month running down column A.

My dilema is that each year i have to copy all the floder, wipe all the data leaving the formulas in, and delete all the dates and change to next year as obviously each year the 1st will not land on the same day therefore i have to go through the long process of deleting all and re typing in the days, dates for each week, add a row for total at end of week and carry on like that so each page is a different month and the weekly totals run all the way through the year wk1, wk2, wk3, wk4, wk5, wk6 etc.

Does anyone know of an easier way of excel knowing what day the new year begins and inserts it into a new spreadsheet?????

Please please help!!!!!

If i can help it i wuld prefer to carry on using excel for my accounts

HELP ME!!!!!

Configuration: Windows 7 Internet Explorer 8.0

Best answers for « update dates in excel spreadsheet each year » in :
Excel – How to extract partial data? Show Excel – How to extract partial data? Issue Solution Note Issue I have an Excel spreadsheet that contains around 1500 html links. All the addresses start out common... i.e. http://www.frogs.com/. What I want to extract into another...
Inserting an animated gif in Excel ShowInserting an animated gif in Excel To insert an animated gif image in an Excel spreadsheet, you must insert the image into a control. To insert the control, go to the View menu/Toolbars/Control Toolbox Activate the first button Design...
Excel tips : How to insert date in a cell ShowExcel tips : How to insert date in a cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press CTRL + ; in the chosen cell. To insert current time, press CTRL+...
How to split data into multiple worksheets? ShowHow to split data into multiple worksheets? Issue Solution Note Issue I hope someone can help! I have a .csv file open with excel that contains a large amount of data that has been merged together so that each data set follows each...
Spreadsheets - Data Entry ShowCell Content A cell of a worksheet can contain a value or be empty. The value of a cell has two essential characteristics: a type, which means the intrinsic type of the data. There are generally three types of values: numeric values, for example...
Spreadsheet - Formulas ShowIntroduction to Formulas The main use of a spreadsheet is to automate calculations, which means using cells to perform operations based on values in other cells. The spreadsheet recalculates all the values each time a change is made to the value of...
Introduction to Spreadsheet Concepts ShowWhat is a Spreadsheet? A spreadsheet (or spreadsheet program) is software that permits numerical data to be used and to perform automatic calculations on numbers contained in a table. It is also possible to automate complex calculations by using a...

1

venkat1926, on Nov 8, 2009 1:44:35 am GMT

A1 is having an entry 1/1/09. now in B1 enter this formula
=WEEKDAY(A1)
you will get 5
the weekday starts from Sunday in this formula
1 Sundnay, 2 Monday, 3 Tuesday, 4 Wednesday , 5 Thursday, 6 Friday and 7 Saturday.

if you want to check enter in some cell e.g. A5 today's date (11/8/09)
and in the next cell to the right in B5 type
=WEEKDAY(A5)
you will get 1 which is Sunday

Will this information be useful to you.

Reply to venkat1926

2

romeohotel, on Nov 8, 2009 2:05:38 am GMT

Thanx 4 that. ive tried it and i dont think it helps me with what im trying to do.

its difficult to explain but in column a i have the dates and a total for that week, then the next dates and a total for that week.

i need to enter the dates for 2010 and copy as a template. i will use the 2010 untill end and then in 2011 i will bring up the template but i then need to change all the dates to show 2011.obviously in different years weeks and months dont run the same so it all needs changed.

the other problem i have is that on one of the spreadsheets which is linked up to the others it needs to have the days in column b relating to the dates so i need to change the days so they match up with the dates aswell.

im sorry if this is difficult to understand, i dont think im explaining very well but im just hoping im getting the message across.

in desperate need of help

Reply to romeohotel

3

 venkat1926, on Nov 9, 2009 12:38:25 am GMT

See whether this macro will help you. The macro will bring up an input box. there type the year for e.g. 2010 or 2011. (I assume you wont extend to the end of the century).you can format date column A as you like.
test the macro and decide.

your second question is not clear to me.

Sub test()
Dim y As Integer, d As Integer
y = InputBox("type the year, e.g. 2010")
If y Mod 4 = 0 Then
d = 366
Else
d = 365
End If
Range("a1") = "1/1/" & y
Range(Range("A1"), Cells(d, "A")).DataSeries Rowcol:=xlColumns, _
Type:=xlChronological, Date:= _
        xlDay, Step:=1, Trend:=False
Range("B1").Formula = "=weekday(A1)"
Range("B1").AutoFill Range(Range("B1"), Cells(d, "B"))
End Sub

Reply to venkat1926