Sort Table Columns by value in a Cell

tezza

Active Member
Joined
Sep 10, 2006
Messages
382
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
  2. Web
Hi all,

Is it possible to sort a table columns based on the cell value above the table?

Training Expiry Record.xlsx
ALAMANAOAPAQAR
1
2MMM
3
4Safeguarding - Internet SafetySafeguarding AdultsSafeguarding Children..Activities & ExerciseAgeingAlcohol Misuse
Completed
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A4:ED4Expression=A2="M"textNO


EG: if I put the letter 'M' in AQ2 then put that column in alphabetical order with the other columns showing 'M'

So, keep all the Columns with the letter 'M' in row 2 together and sorted from Col G
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I suppose this is your solution - Try it and revert

Hi,

Once I hightlight the area, the sort functions grey out:

1697123865674.png
 
Upvote 0
Thanks for reverting. I actually tried the same before sharing the link. Just now I again tested the same.

The Problem is when you select the entire columns - Sorting Greys out

The Solution - Select the area with the data - It works.

Try it and revert
 
Upvote 0
In fact I tried again. It worked after selecting entire columns too... There must be some other reason then...

Book3
ALAMANAOAPAQAR
1
2CMMMoP
3
4Alcohol MisuseSafeguarding - Internet SafetySafeguarding AdultsSafeguarding ChildrenActivities & ExerciseAgeing..
5
6
7
8
9
10
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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