I think I may be going about this all wrong, Like I said, I'm new to arrays. I've never really used them before, so maybe that is not the best approach.
Here is what I'm trying to do...The top part of the spreadsheet is how it looks now. The bottom part, is what I'm trying to do through code....
<TABLE dir=ltr border=1 cellSpacing=1 borderColor=#000000 cellPadding=2 width=943><TBODY><TR><TD height=16 width="7%">
QTY
</TD><TD height=16 width="7%">
200
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
ITEM
</TD><TD height=16 width="7%">
FREQ
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
A
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
B
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
C
</TD><TD height=16 width="7%">
1/50
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
D
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=164 width="43%" colSpan=6>
I'm making 200 (QTY) of each item. Each item has a frequnecy at which it needs to be checked. (Ex. Items "A" ,"B", and "C" get checked 1/20, so I need to check those items at 20, 40, 60, 80, 100, etc all the way to 200 -- Item "B" gets checked 1/50, so I need to check "B" at 50,150, 200 .
I need to create enough columns to check all items, and label the columns appropriately so that each item is checked at the correct interval. I want to insert "-----" if the item doesnt need checked at that interval...
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD><TD height=164 width="7%">
</TD></TR><TR><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
QTY
</TD><TD height=16 width="7%">
200
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
ITEM
</TD><TD height=16 width="7%">
FREQ
</TD><TD height=16 width="7%">
20
</TD><TD height=16 width="7%">
40
</TD><TD height=16 width="7%">
50
</TD><TD height=16 width="7%">
60
</TD><TD height=16 width="7%">
80
</TD><TD height=16 width="7%">
100
</TD><TD height=16 width="7%">
120
</TD><TD height=16 width="7%">
140
</TD><TD height=16 width="7%">
150
</TD><TD height=16 width="7%">
160
</TD><TD height=16 width="7%">
180
</TD><TD height=16 width="7%">
200
</TD></TR><TR><TD height=16 width="7%">
A
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
B
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
C
</TD><TD height=16 width="7%">
1/50
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD></TR><TR><TD height=16 width="7%">
D
</TD><TD height=16 width="7%">
1/20
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
-----
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD><TD height=16 width="7%">
</TD></TR></TBODY></TABLE>