Google Answers Logo
View Question
 
Q: Math Formula for Printing Pages of Record Numbers ( No Answer,   3 Comments )
Question  
Subject: Math Formula for Printing Pages of Record Numbers
Category: Computers > Programming
Asked by: waddsy-ga
List Price: $120.00
Posted: 04 Aug 2006 19:22 PDT
Expires: 23 Aug 2006 19:42 PDT
Question ID: 752723
Math Formula required for the following: 

I am working on a database program that requires its records to be
printed in a straight numerical order according to how many records a
person inputs, how many records they want to print per page and the
number of records they want to cut (guillotine) and staple together to
form a set/'book'. For ease of cutting and stapling, the formula needs
to number the records correctly so that once the printed sheets are
grouped as a set and cut, the records are automatically arranged in
their numerical order.

EXAMPLE: I have 1000 records and I wish to print 4 records per A4
sheet. I also want 20 records in a stapled 'book'. Each 'book' will
have 20 records numbered in numerical order. 'Book' 1 that is
guillotined from the first quarter portion of the first 20 sheets will
have 20 pages numbered 1 - 20. 'Book' 2 is guillotined from the 2nd
quarter of the first 20 sheets and will have 20 pages numbered 21-40.
'Book' 3 is guillotined from the 3rd quarter of the first 20 sheets
and will have pages numbered 41-60. 'Book' 4 is guillotined from the
4th quarter of the first 20 sheets and will have pages numbered 61-80.

Now, this is where the formula has to account for a variable in the
recurring pattern. 'Book' 5 will come from the first quarter of the
next 20 sheets (e.g. printed A4 sheets 21-40) and will have 20 pages
numbered 81-100. 'Book' 6 will come from the 2nd quarter and will have
20 pages numbered 101-120. 'Book' 7 will come from the 3rd quarter and
have 20 pages numbered 121-140. 'Book' 8 will come from the 4th
quarter and have 20 pages numbered 141-160. 'Book' 9 will come from
the 1st quarter of the 3rd set of 20 sheets (printed A4 sheets 41-60)
and will have pages numbered 161-180. 'Book' 10 will come from the 2nd
quarter and have 20 pages numbered 181-200. AND SO ON..........

So, if the formula is true, and my longhand calculations are correct,
the 25th A4 sheet printed should have record numbers 85 (1st quarter),
105 (2nd quarter), 125 (3rd quarter) and 145 (4th quarter). The 50th
A4 sheet printed should have record numbers 170, 190, 210 and 230.  At
the end of printing, for 1000 records, there should be 50 finished
'books'.

THE QUESTION:
What is the formula for ensuring each record gets its proper page
number printed based on the user inputting variables such as total
number of records, records per printed page and number of
pages/records per guillotined set/book?

Thank you for your help!

Request for Question Clarification by tox-ga on 04 Aug 2006 20:21 PDT
Hi there,

Would an excel sheet that shows you, for a given record number, what
page and which quarter that the record should be on, meet your
requirement?

The excel sheet would consist of a series of algebraic/conditional
formulas that you'd be able to see.

Cheers,
Tox-ga

Clarification of Question by waddsy-ga on 06 Aug 2006 16:39 PDT
Hi Tox, Thank you for your initial query. I am consulting with others
re your response and will get back to you soon. ATM, your suggestion
of an excel sheet would help to see how the example would function but
I need the final answer to account for all variables. For example,
let's say the user wants to print 1000 records and have 3 records per
A4 sheet, grouped 10 per 'book'......... or .... let's say a user
wants to have 5000 records and have 10 per sheet, grouped 20 per
'book'. In this latter example, the records (and numbering) would be
hard set to either print across the A4 sheet then down, or straight
down for the first column then straight down for the second column.

I'll get back to you soon with a further response to your
clarification. Kind regards, Neil

Clarification of Question by waddsy-ga on 06 Aug 2006 18:04 PDT
Hi again tox, 

we think your idea of a speadsheet makes sense. I don't have any other
solutions so this approach may be of help. BTW, my computer program
needing this functionality is being built with Filemaker Pro so I
should be able to incorporate a similar solution worked via Excel.
Once again, the answer needs to account for the variables stated:

1. No. of Records (e.g. 1000) The user can input any number for this variable.

2. No. of Records per A4 Sheet (e.g. 4) I only allow the user to
select 2, 3, 4 or 10 for this variable.

3. No. of Records per Set/'Book' (e.g. 20) This variable could be set
to only allow the user to select from a value list of let's say 10 or
20.

4. Record Number (e.g. assigned automatically as the records generate)
(e.g. 1-1000 in straight order)

5. Record Number for Print Placement according to the formula (e.g.
1-1000 but in a specific order, according to the first 4 variables, so
that the records in each set/'book' are numbered in numerical order
after they are guillotined)

Thank you again for your interest in providing an answer!

Kind regards, 
Neil

Request for Question Clarification by hedgie-ga on 22 Aug 2006 22:08 PDT
Hi,
     If you are happy with the answer given in  the comment, it may be good
      idea to 'expire' the question. If the problem is still open, it 
      may help if you post what is still a problem. 
Is the formula given Lemonteh-ga working?

re:
 " I too don?t know what happened to it from the Google Answers site.."

If you review the GA FAQ (see bottom of the page) you will note that
posting of email addresses is discouraged on GA:


"Should I post my email address to Google Answers if someone asks for it?
To protect your privacy, we recommend that you not post your email
address or any other personal information about yourself on Google
Answers..."

http://answers.google.com/answers/faq.html#aboutpriv

Personal info can be deleted. There are other sites which allow one to find
an consultant to exchange private emails with. GA works differently.

Hope this helps.

Hedgie
Answer  
There is no answer at this time.

Comments  
Subject: Re: Math Formula for Printing Pages of Record Numbers
From: waddsy-ga on 09 Aug 2006 07:19 PDT
 
Hi Lemonteh, thank you for your comment which seems to be approaching
the answer. I am going to refer your solution to a collegue as I do
not immediately understand it completely. It appears that you may have
the answer. As soon as I consult with him, I will get back to you.
Kind regards, Neil (Waddsy)
Subject: Re: Math Formula for Printing Pages of Record Numbers
From: jurunov-ga on 23 Aug 2006 10:04 PDT
 
=IF(MOD(B3,$B$2)=0,$B$2,MOD(B3,$B$2))+(ROUNDUP(B3/$B$2/$B$1,0)-1)*$B$2
=IF(MOD( d, rbp)=0, rbp,MOD( d, rbp))+(ROUNDUP( d/ rbp/ rps,0)-1)*rbp

rps = No. of Records per A4 Sheet    (B3)
rpb = No. of Records per Set/'Book'  ($B$2)
d = The records in straight order    ($B$1)
pg = our answer                       (B4)

tested:
rps=4
rpb=20
d=1    pg=1
d=2    pg=2
d=20   pg=20
d=21   pg=1
d=39   pg=19
d=40   pg=40
d=41   pg=1
d=80
Subject: Re: Math Formula for Printing Pages of Record Numbers
From: jurunov-ga on 23 Aug 2006 10:17 PDT
 
=IF(MOD(B3,$B$2)=0,$B$2,MOD(B3,$B$2))+(ROUNDUP(B3/$B$2/$B$1,0)-1)*$B$2
=IF(MOD( d, rbp)=0, rbp,MOD( d, rbp))+(ROUNDUP( d/ rbp/ rps,0)-1)*rbp

rps = No. of Records per A4 Sheet    (B3)
rpb = No. of Records per Set/'Book'  ($B$2)
d = The records in straight order    ($B$1)
pg = our answer                       (B4)

tested:
rps=4
rpb=20
d=1	 pg=1
d=2	 pg=2
d=20	 pg=20
d=21	 pg=1
d=40	 pg=20
d=41	 pg=1
d=60	 pg=20
d=80	 pg=20
d=81	 pg=21
d=120	 pg=40
d=121	 pg=21
d=140	 pg=40
d=141	 pg=21
d=160	 pg=40
d=163	 pg=43
d=1000 pg=260

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy