Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Auto Sorting Data in Table

Have a table that totals training points that we are manually sorting by
percentage of total points (difference between points earned and possible
points).

Looking for a way to have the table auto sort by the percentage when the
total points change. The chart is set up as follows:

Column B Column C-AG Column AH Column AI Column AJ
Names Points are entered Points sumed Possible Points % of
Possible Points

What I need it to do is when the points summed changes (which changes the %)
that the table automatically sorts the table from highest % to lowest % in
Column AJ.

Any suggestions/ideas are greatly appreciated.
dbarrow
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Auto Sorting Data in Table

This assumes that column AH is manually changed. If AH is actually a
summation formula, and the actual changes are being made in C:AG, change the
Range called out in the intersect. Right click on sheet tab, paste this in:

'=============

Private Sub Worksheet_Change(ByVal Target As Range)
'This is the range to change if AH is a formula
If Intersect(Target, Range("AH:AH")) Is Nothing Then Exit Sub

Range("B:AJ").Sort Key1:=Range("AJ1"), Order1:=xlDescending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom, DataOption1:=xlSortTextAsNumbers

End Sub
'============
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"debra49424" wrote:

Have a table that totals training points that we are manually sorting by
percentage of total points (difference between points earned and possible
points).

Looking for a way to have the table auto sort by the percentage when the
total points change. The chart is set up as follows:

Column B Column C-AG Column AH Column AI Column AJ
Names Points are entered Points sumed Possible Points % of
Possible Points

What I need it to do is when the points summed changes (which changes the %)
that the table automatically sorts the table from highest % to lowest % in
Column AJ.

Any suggestions/ideas are greatly appreciated.
dbarrow

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto re-sorting of data- HELP - Is this possible ?? David Brereton[_2_] Excel Discussion (Misc queries) 4 July 18th 08 07:50 PM
Auto Generate Sorting table(empty cell)?? daniellchiu via OfficeKB.com Excel Discussion (Misc queries) 1 October 18th 07 12:32 PM
Auto Generate Sorting table?? daniellchiu via OfficeKB.com Excel Discussion (Misc queries) 3 October 18th 07 12:31 PM
Data auto sorting Freshman Excel Worksheet Functions 6 January 24th 07 06:12 AM
Auto sorting a table JOHN ROBERTS Charts and Charting in Excel 1 August 30th 05 03:16 AM


All times are GMT +1. The time now is 02:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"