Ryan D
2013-04-30 22:57:25 UTC
I'm trying to sort data that is connected to another list. For example:
In column ABCD I have the names in A in alphabetical order and column B is actually a formula [=c2*2] and copy and pasted down to 5.
-----A---------B---------C---------D
1 Player--Points--Wins--Losses
2 Abe ------ 2 -------- 1 ------- 5
3 Bob ------ 8 -------- 4 ------- 2
4 Cal ------- 6 -------- 3 ------- 3
5 Joe ------- 8 -------- 4 ------- 2
Because I want to keep the names in alphabetical order to easily update the stats (I actually have about 30 names), I created another list on the same worksheet, only 5 columns over to sort by Point value.
Columns IJKL look exactly the same except I used formulas instead of numbers so that I would only need to enter the stats once. So my column C looks like this (then I copy and pasted the formulas for the other rows)
------ I ---------- J -------- K -------- L
1 Player -- Points -- Wins - Losses
2 Abe --- [=k2*2] - [=c2] -- [=d2]
3 Bob --- [=k3*2] - [=c3] -- [=d3]
4 Cal ---- [=k4*2] - [=c4] -- [=d4]
5 Joe ---- [=k5*2] - [=c5] -- [=d5]
Here is my problem. I highlight the columns IJKL and I try to sort the values in the "Points" heading column from highest to lowest so that the names would ideally be in order from most points to least points. The names actually go in that order, but then the values stay exactly where they are and the Point values no longer sync with the player. After the sort, it would look like this:
What you see:----------------------------------- Looking at the cells:
------I -------- J -------- K ------ L
1 Player Points Wins - Losses
2 Bob ------ 2 -------- 1 ------- 5 -------| 2 - Bob --- [=k2*2] - [=c2] -- [=d2]
3 Joe ------- 8 -------- 4 ------- 2 -------| 3 - Joe --- [=k3*2] - [=c3] -- [=d3]
4 Cal ------- 6 -------- 3 ------- 3 -------| 4 - Cal ---- [=k4*2] - [=c4] -- [=d4]
5 Abe ------ 8 -------- 4 ------- 2 -------| 5 - Abe --- [=k5*2] - [=c5] -- [=d5]
The formulas (stats for the player) don't stay with the player. After the sort, I look at the cells and see that though the players' names have changed to the correct order from most points to least points, the formulas haven't moved.
And finally the question: How do I sort this data so that the formulas will always stay with the name like this:?
------ I ---------- J --------- K ------- L
1 Player -- Points -- Wins Losses
2 Bob --- [=k3*2] - [=c3] -- [=d3]
3 Joe ---- [=k5*2] - [=c5] -- [=d5]
4 Cal ---- [=k4*2] - [=c4] -- [=d4]
5 Abe --- [=k2*2] - [=c2] -- [=d2]
PS: I don't need it to automatically sort.