Mr_Patrick
New Member
- Joined
- Feb 24, 2017
- Messages
- 8
Hi everyone,
I have a lot of trouble with my cells references getting messed up after sorting.
I have two columns (about 3000 rows) which look like :
[TABLE="width: 500"]
<tbody>[TR]
[TD]2 and 3
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3 and 5
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]6 and 7
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]8 and 9
[/TD]
[TD]80
[/TD]
[/TR]
[TR]
[TD]etc
[/TD]
[TD]etc
[/TD]
[/TR]
</tbody>[/TABLE]
Currently, the first columns are written like : cell A1 has input < 2 and 3> while cell A2 is :
and similarly for the other cells.
The problem is when I wish to sort both columns according to column B (from largest to smallest number), the referencing gets mixed up, I would want to get :
[TABLE="width: 500"]
<tbody>[TR]
[TD]8 and 9
[/TD]
[TD]80
[/TD]
[/TR]
[TR]
[TD]3 and 5
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]6 and 7
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]2 and 3
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc
[/TD]
[TD]etc
[/TD]
[/TR]
</tbody>[/TABLE]
Anyone willing to help me out?
Thank you in advance.
I have a lot of trouble with my cells references getting messed up after sorting.
I have two columns (about 3000 rows) which look like :
[TABLE="width: 500"]
<tbody>[TR]
[TD]2 and 3
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3 and 5
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]6 and 7
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]8 and 9
[/TD]
[TD]80
[/TD]
[/TR]
[TR]
[TD]etc
[/TD]
[TD]etc
[/TD]
[/TR]
</tbody>[/TABLE]
Currently, the first columns are written like : cell A1 has input < 2 and 3> while cell A2 is :
Code:
[=LEFT(A1;FIND(" ";A1))+2&" and "&LEFT(A1;FIND(" ";A1))+3
The problem is when I wish to sort both columns according to column B (from largest to smallest number), the referencing gets mixed up, I would want to get :
[TABLE="width: 500"]
<tbody>[TR]
[TD]8 and 9
[/TD]
[TD]80
[/TD]
[/TR]
[TR]
[TD]3 and 5
[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]6 and 7
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]2 and 3
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc
[/TD]
[TD]etc
[/TD]
[/TR]
</tbody>[/TABLE]
Anyone willing to help me out?
Thank you in advance.