Update dates in excel spreadsheet each year
Solved/Closed
Related:
- Update dates in excel spreadsheet each year
- Play store update - Guide
- Ps3 update - Guide
- Number to words in excel - Guide
- Gif in excel - Guide
- Tentacle locker 2 pool update apk - Download - Adult games
3 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Nov 8, 2009 at 07:38 PM
Nov 8, 2009 at 07:38 PM
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.
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
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Nov 7, 2009 at 08:44 PM
Nov 7, 2009 at 08:44 PM
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.
=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.
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
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