In my line of work I need users to enter a consignment size, i.e. 25,800. From here, a mini program would...
1. Determine whether the size is between 0-10,000, 10,000-20,000, 20,000-30,000, 30,000-40,000, and 40,000-50,000.
2. Once the correct range is determined, it breaks down that consignment size into smaller lots based on constants within each range: 0-10,000 (constant is 3,500), 10,00-20,000 (constant is 4,500), 20,000-30,000 (constant is 6,000), 30,000-40,000 (constant is 7,000), and 40,000-50,000 (constant is 8,000). Thus, a consignment size of 25,800 breaks down into 4 lots of 6,000. Next, I would like to display, "1","2","3","4" in column 1 (C1) with the corresponding lot size next to each in column 2 (C2):
C1 C2
1 6000
2 6000
3 6000
4 6000
Each constant also has its own increment total. For a constant of 6,000 the increment total is 28. This increment total would be column 3:
C1 C2 C3
1 6000 28
2 6000 28
3 6000 28
4 6000 28
3. I would like to have the remainder, 1,800, calculated and displayed as a final lot size:
C1 C2
5 1800
As the final lot size varies with each new problem, it will be determined by a formula: remaining lot size divided by 1000, the result squared (square root), and that remainder multiplied by 15. So, for an 1800 lot size, the increment total would be 20.
C1 C2 C3
5 1800 20
4. All of these calculations would simply go on behind the scenes and appear on a formatted sheet that the user does not need to see until it is printed off. What the user wants is simply to have his or her sheets broken down and ready to print.
5. The next big problem is to enable conditional printing so the data above (including everything else on the formatted sheet in which it appears) is printed off as many times as there are lots. In this case, five sheets would print out; no more, no less. Each sheet would also indicate, in a particular cell, what lot is represented by that sheet, i.e. "Lot 1".
6. The data entry page would look something like this:
Consignment Size for A: [Enter data here]
Print Pages for all lots calculated for consignment size [Press this button]
Consignment Size for B: [Enter data here]
and so forth...
I would like to allow the user to enter 5 consignment sizes with a print button for each.
Any help on this would be greatly appreciated. Vbab
1. Determine whether the size is between 0-10,000, 10,000-20,000, 20,000-30,000, 30,000-40,000, and 40,000-50,000.
2. Once the correct range is determined, it breaks down that consignment size into smaller lots based on constants within each range: 0-10,000 (constant is 3,500), 10,00-20,000 (constant is 4,500), 20,000-30,000 (constant is 6,000), 30,000-40,000 (constant is 7,000), and 40,000-50,000 (constant is 8,000). Thus, a consignment size of 25,800 breaks down into 4 lots of 6,000. Next, I would like to display, "1","2","3","4" in column 1 (C1) with the corresponding lot size next to each in column 2 (C2):
C1 C2
1 6000
2 6000
3 6000
4 6000
Each constant also has its own increment total. For a constant of 6,000 the increment total is 28. This increment total would be column 3:
C1 C2 C3
1 6000 28
2 6000 28
3 6000 28
4 6000 28
3. I would like to have the remainder, 1,800, calculated and displayed as a final lot size:
C1 C2
5 1800
As the final lot size varies with each new problem, it will be determined by a formula: remaining lot size divided by 1000, the result squared (square root), and that remainder multiplied by 15. So, for an 1800 lot size, the increment total would be 20.
C1 C2 C3
5 1800 20
4. All of these calculations would simply go on behind the scenes and appear on a formatted sheet that the user does not need to see until it is printed off. What the user wants is simply to have his or her sheets broken down and ready to print.
5. The next big problem is to enable conditional printing so the data above (including everything else on the formatted sheet in which it appears) is printed off as many times as there are lots. In this case, five sheets would print out; no more, no less. Each sheet would also indicate, in a particular cell, what lot is represented by that sheet, i.e. "Lot 1".
6. The data entry page would look something like this:
Consignment Size for A: [Enter data here]
Print Pages for all lots calculated for consignment size [Press this button]
Consignment Size for B: [Enter data here]
and so forth...
I would like to allow the user to enter 5 consignment sizes with a print button for each.
Any help on this would be greatly appreciated. Vbab