Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Determining volume/number.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Determining volume/number.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining row number in which a value occurs Harold Christian[_2_] Charts and Charting in Excel 1 February 17th 09 08:33 AM
Calculating volume and number. Jim Smith Excel Worksheet Functions 0 February 17th 06 07:48 PM
need help determining a row number Gary Keramidas Excel Programming 7 November 13th 05 03:54 AM
Determining Row Number Wes Jester Excel Programming 2 August 26th 03 09:20 PM
Determining Active Row Number Don Guillett[_4_] Excel Programming 0 August 20th 03 11:04 PM


All times are GMT +1. The time now is 09:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"