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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,229
Messages
6,170,881
Members
452,364
Latest member
springate

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