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:
Using a hyperlink formula based on another row should work.
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I'm not sure I follow, but why not insert a single thin blank column after col "D" then sort "A:D"
 
Upvote 0
Thanks RasGhul and Michael.

RasGhul - I'm just reading up on the HYPERLINK formula to see if that will resolve my issue i.e. will the linked cell become incorrect when I insert another row (with the alternative then being to name each of the 75 cells separately, which is laborious)

Michael - that unfortunately won't work because the cell values are hyperlinks
 
Last edited:
Upvote 0
You maybe able to use something like this so that it doesn't matter what row its filtered to in Analysis, it always returns the correct row in Training Log hyperlink address;

Yet to filter and test I'll leave that up to you mate, but the theory is there. Also as long as there is only one exercise event on that date the formula should work. It would be better to add/insert the Route Number to the Training Log so the lookup value for match can be made more unique.


=HYPERLINK("#'Training Log'!"&ADDRESS(MATCH(B2,'Training Log'!$A$1:$A$50,0),8),"Click Training Log for Comments")


https://www.dropbox.com/s/4bhi6laomq788dn/Hyperlink demo_Ironman.xlsx?dl=0
 
Upvote 0
Hi RasGhul, many thanks for the formula/example.

The issue I'm having is that the hyperlinks aren't linked to text but to numerical values - see below


Book1
ABCDE
1RANKDATETIMEPACELOG ENTRY
2
3430.10.20051:28:328:31LOG ENTRY
4513.11.20051:29:088:34LOG ENTRY
5217.12.20051:26:338:19LOG ENTRY
61325.12.20051:34:279:05LOG ENTRY
7831.12.20051:32:108:52LOG ENTRY
8616.07.20061:29:338:37LOG ENTRY
91029.07.20061:32:318:54LOG ENTRY
101517.03.20071:34:589:08LOG ENTRY
111629.07.20071:36:019:14LOG ENTRY
122005.08.20071:40:199:39LOG ENTRY
131219.08.20071:33:489:01LOG ENTRY
14305.09.20071:28:078:28LOG ENTRY
15921.09.20071:32:108:52LOG ENTRY
16725.09.20071:30:168:41LOG ENTRY
17126.10.20071:24:228:07LOG ENTRY
181104.05.20081:33:208:58LOG ENTRY
191725.05.20081:37:059:20LOG ENTRY
201423.08.20081:34:479:07LOG ENTRY
211912.04.20091:37:449:24LOG ENTRY
222126.04.20091:41:579:48LOG ENTRY
231820.09.20091:37:099:21LOG ENTRY
24
25107.10.20121:54:1510:59LOG ENTRY
26
27110.02.20192:26:4914:07LOG ENTRY
28210.03.20192:28:0214:14LOG ENTRY
29323.03.20192:29:0014:20LOG ENTRY
30
3125AVE (2019-)2:27:57
32
33
34
351117.04.20180:41:3513:52LOG ENTRY
36416.11.20180:36:0812:03LOG ENTRY
37505.12.20180:37:4412:35LOG ENTRY
38807.12.20180:38:0612:42LOG ENTRY
39615.12.20180:37:4712:36LOG ENTRY
40931.12.20180:39:4413:15LOG ENTRY
41301.01.20190:36:0412:01LOG ENTRY
421003.01.20190:39:5213:17LOG ENTRY
43705.01.20190:37:5112:37LOG ENTRY
44213.01.20190:35:3211:51LOG ENTRY
45117.01.20190:35:3011:50LOG ENTRY
46
4711AVERAGE0:37:48
48
49
50
51708.11.20180:26:0911:53LOG ENTRY
52110.11.20180:24:3811:12LOG ENTRY
53313.11.20180:24:5211:18LOG ENTRY
541020.11.20180:27:5412:41LOG ENTRY
55222.11.20180:24:4011:13LOG ENTRY
56424.11.20180:24:5811:21LOG ENTRY
57827.11.20180:26:5912:16LOG ENTRY
58629.11.20180:25:4711:43LOG ENTRY
59922.12.20180:27:0412:18LOG ENTRY
60524.12.20180:25:3111:36LOG ENTRY
611109.01.20190:28:3012:57LOG ENTRY
621214.02.20190:29:5313:35LOG ENTRY
631429.03.20190:33:3315:15LOG ENTRY
641304.04.20190:31:2814:18LOG ENTRY
65
6614AVERAGE0:27:17
67
68
69
70509.12.20180:52:4812:34LOG ENTRY
71913.12.20180:54:1312:55LOG ENTRY
721520.12.20180:58:4614:00LOG ENTRY
73625.12.20180:52:5912:37LOG ENTRY
74327.12.20180:52:0112:23LOG ENTRY
75707.01.20190:53:2212:42LOG ENTRY
76121.01.20190:49:4311:50LOG ENTRY
771225.01.20190:57:2413:40LOG ENTRY
78831.01.20190:54:0712:53LOG ENTRY
791104.02.20190:56:2513:26LOG ENTRY
80208.02.20190:50:3112:02LOG ENTRY
81412.02.20190:52:0912:25LOG ENTRY
821020.02.20190:55:1513:09LOG ENTRY
831326.02.20190:57:5313:47LOG ENTRY
841402.04.20190:58:4113:58LOG ENTRY
85
8615AVERAGE0:54:25
87
88
89
90218.12.20181:09:2513:53LOG ENTRY
91119.03.20191:06:4013:20LOG ENTRY
92
93
942AVERAGE1:08:03
Analysis
Cell Formulas
RangeFormula
A3=RANK(C3,$C$3:$C$23,1)
A4=RANK(C4,$C$3:$C$23,1)
A5=RANK(C5,$C$3:$C$23,1)
A6=RANK(C6,$C$3:$C$23,1)
A7=RANK(C7,$C$3:$C$23,1)
A8=RANK(C8,$C$3:$C$23,1)
A9=RANK(C9,$C$3:$C$23,1)
A10=RANK(C10,$C$3:$C$23,1)
A11=RANK(C11,$C$3:$C$23,1)
A12=RANK(C12,$C$3:$C$23,1)
A13=RANK(C13,$C$3:$C$23,1)
A14=RANK(C14,$C$3:$C$23,1)
A15=RANK(C15,$C$3:$C$23,1)
A16=RANK(C16,$C$3:$C$23,1)
A17=RANK(C17,$C$3:$C$23,1)
A18=RANK(C18,$C$3:$C$23,1)
A19=RANK(C19,$C$3:$C$23,1)
A20=RANK(C20,$C$3:$C$23,1)
A21=RANK(C21,$C$3:$C$23,1)
A22=RANK(C22,$C$3:$C$23,1)
A23=RANK(C23,$C$3:$C$23,1)
A25=RANK(C25,$C$25:$C$25,1)
A27=RANK(C27,$C$27:$C$30,1)
A28=RANK(C28,$C$27:$C$30,1)
A29=RANK(C29,$C$27:$C$30,1)
A31=COUNTA(A3:A30)
A35=RANK(C35,$C$35:$C$46,1)
A36=RANK(C36,$C$35:$C$46,1)
A37=RANK(C37,$C$35:$C$46,1)
A38=RANK(C38,$C$35:$C$46,1)
A39=RANK(C39,$C$35:$C$46,1)
A40=RANK(C40,$C$35:$C$46,1)
A41=RANK(C41,$C$35:$C$46,1)
A42=RANK(C42,$C$35:$C$46,1)
A43=RANK(C43,$C$35:$C$46,1)
A44=RANK(C44,$C$35:$C$46,1)
A45=RANK(C45,$C$35:$C$46,1)
A47=COUNTA(A35:A46)
A51=RANK(C51,$C$51:$C$65,1)
A52=RANK(C52,$C$51:$C$65,1)
A53=RANK(C53,$C$51:$C$65,1)
A54=RANK(C54,$C$51:$C$65,1)
A55=RANK(C55,$C$51:$C$65,1)
A56=RANK(C56,$C$51:$C$65,1)
A57=RANK(C57,$C$51:$C$65,1)
A58=RANK(C58,$C$51:$C$65,1)
A59=RANK(C59,$C$51:$C$65,1)
A60=RANK(C60,$C$51:$C$65,1)
A61=RANK(C61,$C$51:$C$65,1)
A62=RANK(C62,$C$51:$C$65,1)
A63=RANK(C63,$C$51:$C$65,1)
A64=RANK(C64,$C$51:$C$65,1)
A66=COUNTA(A51:A65)
A70=RANK(C70,$C$70:$C$85,1)
A71=RANK(C71,$C$70:$C$85,1)
A72=RANK(C72,$C$70:$C$85,1)
A73=RANK(C73,$C$70:$C$85,1)
A74=RANK(C74,$C$70:$C$85,1)
A75=RANK(C75,$C$70:$C$85,1)
A76=RANK(C76,$C$70:$C$85,1)
A77=RANK(C77,$C$70:$C$85,1)
A78=RANK(C78,$C$70:$C$85,1)
A79=RANK(C79,$C$70:$C$85,1)
A80=RANK(C80,$C$70:$C$85,1)
A81=RANK(C81,$C$70:$C$85,1)
A82=RANK(C82,$C$70:$C$85,1)
A83=RANK(C83,$C$70:$C$85,1)
A84=RANK(C84,$C$70:$C$85,1)
A86=COUNTA(A70:A85)
D3=C3/10.4
D4=C4/10.4
D5=C5/10.4
D6=C6/10.4
D7=C7/10.4
D8=C8/10.4
D9=C9/10.4
D10=C10/10.4
D11=C11/10.4
D12=C12/10.4
D13=C13/10.4
D14=C14/10.4
D15=C15/10.4
D16=C16/10.4
D17=C17/10.4
D18=C18/10.4
D19=C19/10.4
D20=C20/10.4
D21=C21/10.4
D22=C22/10.4
D23=C23/10.4
D25=C25/10.4
D27=C27/10.4
D28=C28/10.4
D29=C29/10.4
D35=C35/3
D36=C36/3
D37=C37/3
D38=C38/3
D39=C39/3
D40=C40/3
D41=C41/3
D42=C42/3
D43=C43/3
D44=C44/3
D45=C45/3
D51=C51/2.2
D52=C52/2.2
D53=C53/2.2
D54=C54/2.2
D55=C55/2.2
D56=C56/2.2
D57=C57/2.2
D58=C58/2.2
D59=C59/2.2
D60=C60/2.2
D61=C61/2.2
D62=C62/2.2
D63=C63/2.2
D64=C64/2.2
D70=C70/4.2
D71=C71/4.2
D72=C72/4.2
D73=C73/4.2
D74=C74/4.2
D75=C75/4.2
D76=C76/4.2
D77=C77/4.2
D78=C78/4.2
D79=C79/4.2
D80=C80/4.2
D81=C81/4.2
D82=C82/4.2
D83=C83/4.2
D84=C84/4.2
C31=AVERAGE(C27:C30)
C47=AVERAGE(C35:C46)
C66=AVERAGE(C51:C65)
C86=AVERAGE(C70:C85)
 
Upvote 0
Referring back to my first post, all I want to do is be able to sort any of the first 4 columns from smallest to largest and largest to smallest. I think the cell links are making this difficult though.
 
Upvote 0
If you were confident that the 4 variables would always return a unique value the concatenate the four and use a vlookup against the unique set
 
Upvote 0
Thanks Mole - I understand what you're saying but not how to go about it :-(
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,225
Members
453,025
Latest member
Hannah_Pham93

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