TAPS_MikeDion
Well-known Member
- Joined
- Aug 14, 2009
- Messages
- 622
- Office Version
- 2011
- Platform
- MacOS
Hi everyone,
Hopefully this can be done, and hopefully you follow what I'm trying to do.
Sheet1 (for argument sake, columns = A - G, rows = 2+header)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]LAST[/TD]
[TD]FIRST[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[/TR]
[TR]
[TD]Jones[/TD]
[TD]Bob[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Smith[/TD]
[TD]Ann[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 (just references from sheet1, except for column H)
[TABLE="class: grid, width: 600, align: left"]
<tbody>[TR]
[TD]LAST[/TD]
[TD]FIRST[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]OTHER[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]=A2[/TD]
[TD]=B2[/TD]
[TD]=C2[/TD]
[TD]=D2[/TD]
[TD]=E2[/TD]
[TD]=F2[/TD]
[TD]=G2[/TD]
[TD]=nothing[/TD]
[TD]=sum(sheet2 A2-H2)[/TD]
[/TR]
[TR]
[TD]=A3[/TD]
[TD]=B3[/TD]
[TD]=C3[/TD]
[TD]=D3[/TD]
[TD]=E3[/TD]
[TD]=F3[/TD]
[TD]=G3[/TD]
[TD]=sheet2 X1[/TD]
[TD]=sum(sheet2 A3-H3)[/TD]
[/TR]
</tbody>[/TABLE]
The problem is when sheet1 is sorted (let's say last name & first name), the sheet2 cell X1 reference doesn't follow the sort. In the case of the example, instead of cell X1 data moving from cell H3 to H2, it remains at H3.
Thanks to anyone who replies!
Hopefully this can be done, and hopefully you follow what I'm trying to do.
Sheet1 (for argument sake, columns = A - G, rows = 2+header)
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]LAST[/TD]
[TD]FIRST[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[/TR]
[TR]
[TD]Jones[/TD]
[TD]Bob[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Smith[/TD]
[TD]Ann[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 (just references from sheet1, except for column H)
[TABLE="class: grid, width: 600, align: left"]
<tbody>[TR]
[TD]LAST[/TD]
[TD]FIRST[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]OTHER[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]=A2[/TD]
[TD]=B2[/TD]
[TD]=C2[/TD]
[TD]=D2[/TD]
[TD]=E2[/TD]
[TD]=F2[/TD]
[TD]=G2[/TD]
[TD]=nothing[/TD]
[TD]=sum(sheet2 A2-H2)[/TD]
[/TR]
[TR]
[TD]=A3[/TD]
[TD]=B3[/TD]
[TD]=C3[/TD]
[TD]=D3[/TD]
[TD]=E3[/TD]
[TD]=F3[/TD]
[TD]=G3[/TD]
[TD]=sheet2 X1[/TD]
[TD]=sum(sheet2 A3-H3)[/TD]
[/TR]
</tbody>[/TABLE]
The problem is when sheet1 is sorted (let's say last name & first name), the sheet2 cell X1 reference doesn't follow the sort. In the case of the example, instead of cell X1 data moving from cell H3 to H2, it remains at H3.
Thanks to anyone who replies!