Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to construct a macro that can generate the proper
volume number and number for a publication. Ideally, the user would enter the year in a cell and run a macro that would generate the year's volume/number on another worksheet. The publication has two sets of volumes/numbers. One for the Monday through Saturday (daily) edition and one for the Sunday paper. The anniversary date for the daily paper is 1/26/1880. The anniversary date for the daily paper is 9/13/1981. The volume refers to the number of years published. The number refers to the days thus far in that volume that have been printed. So, for example, the Sunday proper volume/number on 2/19/06 would be Volume 26 No. 23. For the daily, the volume/number on 2/21/06 would be Volume 127 No. 23. On Jan. 26, 2007, the Volume for the daily paper would be 128 and the No. would be 1. On Sept. 13, 2006, the Volume for the Sunday paper would be 27 and the No. would be 1. I would also like to add some flexibility to the macro. There are certain holidays the publication does not publish. I would like to have the option of adding certain dates in a column that would give an accurate count. For example in 2005, the publication did not publish 12/25, so I would have entered that date to get the proper number for Sunday. I am using Excel 2000 on XP and NT4. Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not clear:
If volume is number of years, then why 127?? -- Gary''s Student "Jim Smith" wrote: I'd like to construct a macro that can generate the proper volume number and number for a publication. Ideally, the user would enter the year in a cell and run a macro that would generate the year's volume/number on another worksheet. The publication has two sets of volumes/numbers. One for the Monday through Saturday (daily) edition and one for the Sunday paper. The anniversary date for the daily paper is 1/26/1880. The anniversary date for the daily paper is 9/13/1981. The volume refers to the number of years published. The number refers to the days thus far in that volume that have been printed. So, for example, the Sunday proper volume/number on 2/19/06 would be Volume 26 No. 23. For the daily, the volume/number on 2/21/06 would be Volume 127 No. 23. On Jan. 26, 2007, the Volume for the daily paper would be 128 and the No. would be 1. On Sept. 13, 2006, the Volume for the Sunday paper would be 27 and the No. would be 1. I would also like to add some flexibility to the macro. There are certain holidays the publication does not publish. I would like to have the option of adding certain dates in a column that would give an accurate count. For example in 2005, the publication did not publish 12/25, so I would have entered that date to get the proper number for Sunday. I am using Excel 2000 on XP and NT4. Thanks for any help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In 1880, they started with Volume 1, not Volume 0.
On Fri, 17 Feb 2006 02:49:16 -0800, Gary''s Student wrote: Not clear: If volume is number of years, then why 127?? "Jim Smith" wrote: I'd like to construct a macro that can generate the proper volume number and number for a publication. Ideally, the user would enter the year in a cell and run a macro that would generate the year's volume/number on another worksheet. The publication has two sets of volumes/numbers. One for the Monday through Saturday (daily) edition and one for the Sunday paper. The anniversary date for the daily paper is 1/26/1880. The anniversary date for the daily paper is 9/13/1981. The volume refers to the number of years published. The number refers to the days thus far in that volume that have been printed. So, for example, the Sunday proper volume/number on 2/19/06 would be Volume 26 No. 23. For the daily, the volume/number on 2/21/06 would be Volume 127 No. 23. On Jan. 26, 2007, the Volume for the daily paper would be 128 and the No. would be 1. On Sept. 13, 2006, the Volume for the Sunday paper would be 27 and the No. would be 1. I would also like to add some flexibility to the macro. There are certain holidays the publication does not publish. I would like to have the option of adding certain dates in a column that would give an accurate count. For example in 2005, the publication did not publish 12/25, so I would have entered that date to get the proper number for Sunday. I am using Excel 2000 on XP and NT4. Thanks for any help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am sorry Jim, I am still off by one year:
Sunday Paper In A1 put 9/13/1981 in B1 put 1 in C1 put 1 In A2 thru C2 put: =A1+7 =DATEDIF($A$1,A2,"y")+1 =IF(B1=B2,C1+1,1) Then copy A2 thru C2 down to row#2500 The table appears to track to your requirements. The volume bumps on the aniversery date and the number re-sets to one when the volume bumps. But if you look at row#1276 you will see 2/19/2006 25 23 My volume is still off by one. Perhaps 9/13/1981 should be Volume 2 number 1??? -- Gary''s Student "Jim Smith" wrote: In 1880, they started with Volume 1, not Volume 0. On Fri, 17 Feb 2006 02:49:16 -0800, Gary''s Student wrote: Not clear: If volume is number of years, then why 127?? "Jim Smith" wrote: I'd like to construct a macro that can generate the proper volume number and number for a publication. Ideally, the user would enter the year in a cell and run a macro that would generate the year's volume/number on another worksheet. The publication has two sets of volumes/numbers. One for the Monday through Saturday (daily) edition and one for the Sunday paper. The anniversary date for the daily paper is 1/26/1880. The anniversary date for the daily paper is 9/13/1981. The volume refers to the number of years published. The number refers to the days thus far in that volume that have been printed. So, for example, the Sunday proper volume/number on 2/19/06 would be Volume 26 No. 23. For the daily, the volume/number on 2/21/06 would be Volume 127 No. 23. On Jan. 26, 2007, the Volume for the daily paper would be 128 and the No. would be 1. On Sept. 13, 2006, the Volume for the Sunday paper would be 27 and the No. would be 1. I would also like to add some flexibility to the macro. There are certain holidays the publication does not publish. I would like to have the option of adding certain dates in a column that would give an accurate count. For example in 2005, the publication did not publish 12/25, so I would have entered that date to get the proper number for Sunday. I am using Excel 2000 on XP and NT4. Thanks for any help. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks very much! That gets me on the right path. I appreciate your
help. On Fri, 17 Feb 2006 15:58:27 -0800, Gary''s Student wrote: I am sorry Jim, I am still off by one year: Sunday Paper In A1 put 9/13/1981 in B1 put 1 in C1 put 1 In A2 thru C2 put: =A1+7 =DATEDIF($A$1,A2,"y")+1 =IF(B1=B2,C1+1,1) Then copy A2 thru C2 down to row#2500 The table appears to track to your requirements. The volume bumps on the aniversery date and the number re-sets to one when the volume bumps. But if you look at row#1276 you will see 2/19/2006 25 23 My volume is still off by one. Perhaps 9/13/1981 should be Volume 2 number 1??? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm having trouble getting the pre-1900 anniversary date to calculate.
Is there a workaround for this? Or another way to got at it? Thanks. On Sat, 18 Feb 2006 14:57:26 GMT, Jim Smith wrote: Thanks very much! That gets me on the right path. I appreciate your help. On Fri, 17 Feb 2006 15:58:27 -0800, Gary''s Student wrote: I am sorry Jim, I am still off by one year: Sunday Paper In A1 put 9/13/1981 in B1 put 1 in C1 put 1 In A2 thru C2 put: =A1+7 =DATEDIF($A$1,A2,"y")+1 =IF(B1=B2,C1+1,1) Then copy A2 thru C2 down to row#2500 The table appears to track to your requirements. The volume bumps on the aniversery date and the number re-sets to one when the volume bumps. But if you look at row#1276 you will see 2/19/2006 25 23 My volume is still off by one. Perhaps 9/13/1981 should be Volume 2 number 1??? |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim
John Walkenbach has an add-in for dealing with pre-1900 dates http://www.j-walk.com/ss/excel/usertips/tip028.htm -- Regards Roger Govier Jim Smith wrote: I'm having trouble getting the pre-1900 anniversary date to calculate. Is there a workaround for this? Or another way to got at it? Thanks. On Sat, 18 Feb 2006 14:57:26 GMT, Jim Smith wrote: Thanks very much! That gets me on the right path. I appreciate your help. On Fri, 17 Feb 2006 15:58:27 -0800, Gary''s Student wrote: I am sorry Jim, I am still off by one year: Sunday Paper In A1 put 9/13/1981 in B1 put 1 in C1 put 1 In A2 thru C2 put: =A1+7 =DATEDIF($A$1,A2,"y")+1 =IF(B1=B2,C1+1,1) Then copy A2 thru C2 down to row#2500 The table appears to track to your requirements. The volume bumps on the aniversery date and the number re-sets to one when the volume bumps. But if you look at row#1276 you will see 2/19/2006 25 23 My volume is still off by one. Perhaps 9/13/1981 should be Volume 2 number 1??? |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've tried it with the formulas posted but still get the dreaded
#VALUE! error. On Sun, 19 Feb 2006 17:28:45 -0000, "Roger Govier" wrote: Hi Jim John Walkenbach has an add-in for dealing with pre-1900 dates http://www.j-walk.com/ss/excel/usertips/tip028.htm |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Determining row number in which a value occurs | Charts and Charting in Excel | |||
Calculating volume and number. | Excel Worksheet Functions | |||
need help determining a row number | Excel Programming | |||
Determining Row Number | Excel Programming | |||
Determining Active Row Number | Excel Programming |