Hi, thanks again for your time, I will try your suggested change when I get to work. but in the mean time.
So im try to change the following.
Excel Workbook |
---|
|
---|
| A | B | C | D |
---|
5 | Stock | | | |
---|
6 | Accessories | | | |
---|
7 | Blank Tapes | | | |
---|
8 | Chips | | | |
---|
9 | Confectionery | | | |
---|
10 | Disk Repair/Cleaning | | | |
---|
11 | Drinks | | | |
---|
12 | Ice Creams | | | |
---|
13 | Member Admin Fees | | | |
---|
14 | Misc Food Items | | | |
---|
15 | Miscellaneous items | | | |
---|
16 | News/Mags/Books | | | |
---|
17 | Popcorn | | | |
---|
18 | Promo Merchandise | | | |
---|
19 | Virgin Accessories | | | |
---|
20 | Vouchers | | | |
---|
21 | Subtotal | | | |
---|
22 | Ex-rental | | | |
---|
23 | Game, Nintendo Wii | | | |
---|
24 | Game, PlayStation 2 | | | |
---|
25 | Game, Playstation 3 | | | |
---|
26 | Game, X-Box | | | |
---|
27 | Game, X-Box 360 | | | |
---|
28 | Movie, Blu-Ray | | | |
---|
29 | Movie, DVD | | | |
---|
30 | TV, DVD | | | |
---|
31 | Subtotal | | | |
---|
32 | Rental | | | |
---|
33 | Accessories, Nintendo Wii | | | |
---|
34 | Game, Nintendo Wii | | | |
---|
35 | Game, PlayStation 2 | | | |
---|
36 | Game, Playstation 3 | | | |
---|
37 | Game, X-Box | | | |
---|
38 | Game, X-Box 360 | | | |
---|
39 | Movie, Blu-Ray | | | |
---|
40 | Movie, DVD | | | |
---|
41 | TV, DVD | | | |
---|
42 | Subtotal | | | |
---|
43 | Sell Through | | | |
---|
44 | Accessories, PC Compatible | | | |
---|
45 | Game, DreamCast | | | |
---|
46 | Game, Nintendo Wii | | | |
---|
47 | Game, PC compatible | | | |
---|
48 | Game, PlayStation 2 | | | |
---|
49 | Game, Playstation 3 | | | |
---|
50 | Game, X-Box 360 | | | |
---|
51 | Movie, Blu-Ray | | | |
---|
52 | Movie, DVD | | | |
---|
53 | Movie, DVD - Vanilla | | | |
---|
54 | TV, Blu-Ray | | | |
---|
55 | TV, DVD | | | |
---|
56 | Subtotal | | | |
---|
|
---|
to this
<TABLE style="PADDING-RIGHT: 2pt; PADDING-LEFT: 2pt; FONT-SIZE: 10pt; FONT-FAMILY: Arial,Arial; BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0 border=1><COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TR style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center"><TD></TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">5</TD><TD style="FONT-WEIGHT: bold; FONT-STYLE: italic; TEXT-ALIGN: left">Stock</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">6</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Accessories </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">7</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Blank Tapes </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">8</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Chips </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">9</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Confectionery </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">10</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Disk Repair/Cleaning</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">11</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Drinks </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">12</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Ice Creams </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">13</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Member Admin Fees </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">14</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Misc Food Items </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">15</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Miscellaneous items </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">16</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">News/Mags/Books </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">17</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Popcorn </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">18</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Promo Merchandise </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">19</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Virgin Accessories </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">20</TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Vouchers </TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">21</TD><TD style="FONT-WEIGHT: bold; TEXT-ALIGN: left">Subtotal</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">22</TD><TD></TD><TD style="FONT-WEIGHT: bold; FONT-STYLE: italic; TEXT-ALIGN: left">Ex-rental </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">23</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Nintendo Wii </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">24</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, PlayStation 2 </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">25</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Playstation 3 </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">26</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, X-Box </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">27</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, X-Box 360 </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">28</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, Blu-Ray </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">29</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, DVD </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">30</TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">TV, DVD </TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">31</TD><TD></TD><TD style="FONT-WEIGHT: bold; TEXT-ALIGN: left">Subtotal</TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">32</TD><TD></TD><TD></TD><TD style="FONT-WEIGHT: bold; FONT-STYLE: italic; TEXT-ALIGN: left">Rental </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">33</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Accessories, Nintendo Wii </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">34</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Nintendo Wii </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">35</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, PlayStation 2 </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">36</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Playstation 3 </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">37</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, X-Box </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">38</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, X-Box 360 </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">39</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, Blu-Ray </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">40</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, DVD </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">41</TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">TV, DVD </TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">42</TD><TD></TD><TD></TD><TD style="FONT-WEIGHT: bold; TEXT-ALIGN: left">Subtotal</TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">43</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-WEIGHT: bold; FONT-STYLE: italic; TEXT-ALIGN: left">Sell Through </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">44</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Accessories, PC Compatible </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">45</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, DreamCast </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">46</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Nintendo Wii </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">47</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, PC compatible </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">48</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, PlayStation 2 </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">49</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, Playstation 3 </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">50</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Game, X-Box 360 </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">51</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, Blu-Ray </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">52</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, DVD </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">53</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">Movie, DVD - Vanilla </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">54</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">TV, Blu-Ray </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">55</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-SIZE: 8pt; TEXT-ALIGN: left">TV, DVD </TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">56</TD><TD></TD><TD></TD><TD></TD><TD style="FONT-WEIGHT: bold; TEXT-ALIGN: left">Subtotal</TD></TR></TABLE>
-There is data in the cells to the e,f,g,h,ect.
-There are also some tables below that is formatted in a diferent way but we should not worry about them for now.
-Data from the csv's are not in constant positions, ie the data could be anyware from 20 rows long to 100.
-I have around 200 sheets in which i want to do this in.
-In theroy there is only 5 sections (the word "subtotal" 5 times), but due to the nature of the reports this may not be the case in the distant past or future.
There reason that I use colum "K" is that in my noobness I was worried that the code may have been look for the last row after every loop, "K" always has data in the last row befor and after each loop.
Again thanks for your time.
scott