-Ignore the diagnosis for now--we have to put that in by hand
-Yes. So, for example, 6word_LZ297.xls has one and only one worksheet
-Yes.
-Yes.
-Yes. Subject occupies column A, Diagnosis B, then starts the avgs etc.
-Will do. Lets say for coding purposes, there's a folder called Test. Inside that folder is MasterList.xls. and one other folder, Data. Inside the Data folder are (copies of) ALL the source workbooks.
-If I understand your last point clearly, the data for each new subject is in it's own row. So, [subjnum],[Diag],[24 cells from 6word_subjnum.xls],[24 cells from 7word_subjnum.xls],[8 avgs based on the two conditions computed afterward--don't worry about these]
***The only other details I can think of are (ignore if irrelevant):
For the image condition:
-the MasterList worksheet tab is titled "Images"
-the files for Condition 1 all start with "6image"
-the files for Condition 2 all start with "7image"
-there are **48** items from EACH of the 2 workbooks (double from the "Words" condition) that need to be pulled into the MasterList "Images" worksheet.
-the corresponding cells in each workbook are:
(I've labeled the columns; the first data point (here 1762.67) is N7)
<table x:str="" style="border-collapse: collapse; width: 272pt;" width="362" border="0" cellpadding="0" cellspacing="0"><col style="width: 92pt;" width="122"> <col style="width: 93pt;" width="124"> <col style="width: 87pt;" width="116"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt; width: 92pt;" width="122" height="17">N
</td> <td class="xl22" style="width: 93pt;" width="124">O
</td> <td class="xl22" style="width: 87pt;" width="116">P
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 1</td> <td class="xl22">Median Cong RT 1</td> <td class="xl22">Prop Corr Cong 1</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="1762.6666666666667" align="right" height="17">1762.67</td> <td class="xl22" x:num="" align="right">2085.00</td> <td class="xl22" x:num="" align="right">0.60</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 1</td> <td class="xl22">Median Incong RT 1</td> <td class="xl22">Prop Corr Incong 1</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">3135.00</td> <td class="xl22" x:num="" align="right">3135.00</td> <td class="xl22" x:num="0.33333333333333331" align="right">0.33</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 2</td> <td class="xl22">Median Cong RT 2</td> <td class="xl22">Prop Corr Cong 2</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">2639.25</td> <td class="xl22" x:num="" align="right">2288.50</td> <td class="xl22" x:num="" align="right">0.80</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 2</td> <td class="xl22">Median Incong RT 2</td> <td class="xl22">Prop Corr Incong 2</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">9999.00</td> <td class="xl22" x:num="" align="right">9999.00</td> <td class="xl22" x:num="" align="right">0.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 3</td> <td class="xl22">Median Cong RT 3</td> <td class="xl22">Prop Corr Cong 3</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">2036.00</td> <td class="xl22" x:num="" align="right">1759.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 3</td> <td class="xl22">Median Incong RT 3</td> <td class="xl22">Prop Corr Incong 3</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">3452.00</td> <td class="xl22" x:num="" align="right">3452.00</td> <td class="xl22" x:num="" align="right">0.20</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 4</td> <td class="xl22">Median Cong RT 4</td> <td class="xl22">Prop Corr Cong 4</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">1794.80</td> <td class="xl22" x:num="" align="right">1709.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 4</td> <td class="xl22">Median Incong RT 4</td> <td class="xl22">Prop Corr Incong 4</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">2375.00</td> <td class="xl22" x:num="" align="right">2375.00</td> <td class="xl22" x:num="0.33333333333333331" align="right">0.33</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 5</td> <td class="xl22">Median Cong RT 5</td> <td class="xl22">Prop Corr Cong 5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="1666.3333333333333" align="right" height="17">1666.33</td> <td class="xl22" x:num="" align="right">1550.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 5</td> <td class="xl22">Median Incong RT 5</td> <td class="xl22">Prop Corr Incong 5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">2600.00</td> <td class="xl22" x:num="" align="right">2600.00</td> <td class="xl22" x:num="" align="right">0.40</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 6</td> <td class="xl22">Median Cong RT 6</td> <td class="xl22">Prop Corr Cong 6</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">1509.00</td> <td class="xl22" x:num="" align="right">1550.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 6</td> <td class="xl22">Median Incong RT 6</td> <td class="xl22">Prop Corr Incong 6</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">3326.50</td> <td class="xl22" x:num="" align="right">2919.50</td> <td class="xl22" x:num="" align="right">0.80</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 7</td> <td class="xl22">Median Cong RT 7</td> <td class="xl22">Prop Corr Cong 7</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">1813.00</td> <td class="xl22" x:num="" align="right">1465.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 7</td> <td class="xl22">Median Incong RT 7</td> <td class="xl22">Prop Corr Incong 7</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="2393.6666666666665" align="right" height="17">2393.67</td> <td class="xl22" x:num="" align="right">2432.00</td> <td class="xl22" x:num="" align="right">1.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">
</td> <td class="xl22">
</td> <td class="xl22">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG CONG RT 8</td> <td class="xl22">Median Cong RT 8</td> <td class="xl22">Prop Corr Cong 8</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">1291.00</td> <td class="xl22" x:num="" align="right">1291.00</td> <td class="xl22" x:num="0.66666666666666663" align="right">0.67</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" height="17">AVG INCONG RT 8</td> <td class="xl22">Median Incong RT 8</td> <td class="xl22">Prop Corr Incong 8</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl22" style="height: 12.75pt;" x:num="" align="right" height="17">2214.50</td> <td class="xl22" x:num="" align="right">2048.50</td> <td class="xl22" x:num="" align="right">0.80</td> </tr> </tbody></table>
so, a version of a formula to work out the needed cell numbers might be:
Code:
x="N"
y=7
While y>74
Grab Cell (x,y)
y=y+8
if x="N" and y=71; then
y=9
end
if x="N" and y=73; then
x="O"
y=7
end
if x="O" and y=71; then
y=9
end
if x="O" and y=73; then
x="P"
y=7
end
if x="P" and y=71; then
y=9
end
if x="P" and y=73; then
y=100
end
End While
I'm sure there's a better way to do this, but this was my stab at it.
Hope this helps.