Sort 4 columns individually without losing the order in the other 3

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

Row A:D is filtered so I can sort any of those columns.

My issue is that when I sort Column A Largest to Smallest or any other column then the data in the rows doesn't 'stick' with that column and the numbers become nonsensical.

Here's the data:



Book1
ABCDE
178DIST.AVE TIMEROUTE ##RUNSROUTE DETAILS
1792.20:273214Cullingworth Road/Viaduct (up and down)/Halifax Road/Greenside Lane
1803.00:372911Cullingworth Road/Up viaduct/Down Station Road/Back up/Down viaduct/Halifax Road/Greenside Lane
1814.20:543315Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Wilsden Road/Bents Lane/Hallas Bridge
1824.21:03411Hallas Bridge/Down Bents Lane/Harden Lane/Smithy Lane/Cross Lane/Lee Lane/Sandy Banks/Harden Lane/Bents Lane/Hallas Bridge
1835.01:08342Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
1845.31:14353Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Cross Lane/Smithy Lane/Main Street/Bents Lane/Hallas Bridge
1855.41:11402Cullingworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Bents Lane/Hallas Bridge
1866.71:27423Cullingworth Road/Shay Lane/Crack Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Home
1877.01:35363Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Smithy Lane/Wilsden Road/Bents Lane/Hallas Bridge
1887.01:31391Cullingworth Road/Viaduct/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Greenside Lane
1897.71:44374Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
1909.42:13383Cullingworth Road/Viaduct/Harecroft/Ling Bob/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Harden Lane/Wilsden Road/Mad Mile/Home
19110.42:271425Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to top of 5-Rise Locks/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
19213.13:12431Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC beyond Duck House to grass chicane/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
19315.33:45441Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to junct. of Granby Ln (Riddlesden)/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
Analysis
Cell Formulas
RangeFormula
B179=C66
B180=C47
B181=C86
B182=C151
B183=C94
B184=C102
B185=C143
B186=C159
B187=C110
B188=C135
B189=C119
B190=C127
B191=C31
B192=C167
B193=C175
D179=A66
D180=A47
D181=A86
D182=A151
D183=A94
D184=A102
D185=A143
D186=A159
D187=A110
D188=A135
D189=A119
D190=A127
D191=A31
D192=A167
D193=A167



Hope you can help - thank you.
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
you have to select the five columns, then sort
 
Upvote 0
Hi Mole, thanks for replying, but that made no difference, the results are still incorrect.
 
Upvote 0
is that a table, or rows of data, because i cant see why the detail won't follow the sort column
 
Upvote 0
actually i think i do, but where are the column E formulas ?
 
Upvote 0
Hi Mole, it's rows of data.

Here's Column E again - no formulas, only hyperlinks


Book1
E
178ROUTE DETAILS
179Cullingworth Road/Viaduct (up and down)/Halifax Road/Greenside Lane
180Cullingworth Road/Up viaduct/Down Station Road/Back up/Down viaduct/Halifax Road/Greenside Lane
181Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Wilsden Road/Bents Lane/Hallas Bridge
182Hallas Bridge/Down Bents Lane/Harden Lane/Smithy Lane/Cross Lane/Lee Lane/Sandy Banks/Harden Lane/Bents Lane/Hallas Bridge
183Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
184Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Cross Lane/Smithy Lane/Main Street/Bents Lane/Hallas Bridge
185Cullingworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Bents Lane/Hallas Bridge
186Cullingworth Road/Shay Lane/Crack Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Home
187Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Smithy Lane/Wilsden Road/Bents Lane/Hallas Bridge
188Cullingworth Road/Viaduct/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Greenside Lane
189Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
190Cullingworth Road/Viaduct/Harecroft/Ling Bob/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Harden Lane/Wilsden Road/Mad Mile/Home
191Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to top of 5-Rise Locks/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
192Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC beyond Duck House to grass chicane/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
193Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to junct. of Granby Ln (Riddlesden)/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
Analysis
Cell Formulas
RangeFormula
E178ROUTE DETAILS
E179Cullingworth Road/Viaduct (up and down)/Halifax Road/Greenside Lane
E180Cullingworth Road/Up viaduct/Down Station Road/Back up/Down viaduct/Halifax Road/Greenside Lane
E181Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Wilsden Road/Bents Lane/Hallas Bridge
E182Hallas Bridge/Down Bents Lane/Harden Lane/Smithy Lane/Cross Lane/Lee Lane/Sandy Banks/Harden Lane/Bents Lane/Hallas Bridge
E183Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
E184Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Cross Lane/Smithy Lane/Main Street/Bents Lane/Hallas Bridge
E185Cullingworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Bents Lane/Hallas Bridge
E186Cullingworth Road/Shay Lane/Crack Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Home
E187Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Smithy Lane/Wilsden Road/Bents Lane/Hallas Bridge
E188Cullingworth Road/Viaduct/Ling Bob/Haworth Road/Shay Lane/Coplowe Lane/Smithy Lane/Main Street/Harden Lane/Mill Hill Top/Wilsden Road/Mad Mile/Greenside Lane
E189Cullingworth Road/Viaduct/Station Road/Lane Side/Ling Bob/Haworth Road/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Bents Lane/Hallas Bridge
E190Cullingworth Road/Viaduct/Harecroft/Ling Bob/Wilsden Road/Cottingley Road/Lee Lane/Cross Lane/Coplowe Lane/Crack Lane/Main Street/Harden Lane/Wilsden Road/Mad Mile/Home
E191Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to top of 5-Rise Locks/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
E192Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC beyond Duck House to grass chicane/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
E193Hallas Br/Down Bents Ln/Up Harden/Smithy/Lee Farm/Black Hills/Golf Course/Beck Foot Ln/Wagon Ln/Up LLC to junct. of Granby Ln (Riddlesden)/Back to 3-Rise Locks & over Br/Brown Cow/Main Rd home
Named Ranges
NameRefers ToCells
x=OFFSET(LastLogDate,0,0,-90)
 
Last edited:
Upvote 0
Sorting filtered data gets messy if not done correctly, it may be better to extract the data you want?

I'm not sure that your goal of 4 columns individually, while maintaining 3 is actually possible?
 
Upvote 0
Hi RasGhul, thanks for replying.

I guess what I meant to say was I only need to be able to sort smallest to largest or largest to smallest in Columns A to F without any filtering (I won't be sorting columns E or F but the data should just follow the other columns).

Column F contains exactly the same data as Column E, without the hyperlinks.

I don't understand why, when I try to do this, the values in the other columns change.
 
Last edited:
Upvote 0
What I've established is that the cell values are hyperlinks and are not absolute values, so when they are sorted, the links relate to different values in other cells.

However, my understanding is I can't make the cell values absolute because then if I insert more rows the cell row number will no longer be correct.

Is the only way forward to name each of the 75 cells that are hyperlinked?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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