Cell/row sorting - data from two locations

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. 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!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Perhaps you could create a table to hold each person's first name and last name. Then you could use either vlookup or index/match to pull in the data (these would be dynamic and not break due to sorting in Sheet1).
 
Upvote 0
Thanks, I'll try that. Never used VLOOKUP before so I guess it's time to do some researching.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top