Automatic Sort

packfan

New Member
Joined
Oct 11, 2003
Messages
1
I have a table of fantasy football numbers that I add to each week. Then to the right of that, I have a summary sorted by who is winning. Is there a way to have excel automatically sort the "leaders" list each time I add something to the table? Hope that made sense.[/u]
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I dont think that you can do it if you are working directly with tables but if you create a data entry form then you could do it with that.

Peter
 
Upvote 0
Welcome to the Board!
Is there a way to have excel automatically sort the "leaders" list each time I add something to the table?

Are you using Excel or Access?

If Excel, then a Worksheet_SelectionChange event could work for you if you trigger a sort function from within.

If Access, then follow Peter's advice.

HTH,

Smitty
 
Upvote 0
Ok, now I'm confused. I'm so used to bat17 giving the obvious/best answer that I'm stumped why it hasn't been mentioned before.

If you are editing existing table entries (not adding records) you can just create a query based on the table and throw a descending sort into it. That would give you an 'at a glance' leaders list.

Something I was thinking about though is, you probably do not want it to automatically sort anything until you're done entering all the data. With a fantasy football league, I'd guess you were entering a separate record for each player and what their actual stats were...or, a total for a player each week thus giving one record per player per week.

If your base table has values that do not require further calculation, a crosstab query might be the way to go to get a one row summary per player AND have it sorted in descending order by the overall score.

A good way to do this could still be via a dataentry form with a button on it that you click when you are all done.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,569
Messages
6,160,557
Members
451,656
Latest member
SBulinski1975

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