Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
G G is offline
external usenet poster
 
Posts: 52
Default Sort Question

Is there a way to Sort this SOURCE data by highest average and EXCLUDE Team 2
in the sort.

Note that the SOURCE and RESULT data are on the same worksheet.

Here's the SOURCE data:

Column
A B C
Row
15 TEAM PLAYER AVERAGE

16 1 Bob .333

17 1 John .250

18 2 Al .450

19 1 Charlie .500

Here's the RESULT data that I would like:


Column
A B C
Row
1 TEAM PLAYER AVERAGE

2 1 Charlie .500

3 1 Bob .333

4 1 John .250

I know the code for sorting, but can't seem to figure out a way of excluding
the data WITHOUT Deleting it (HIDE ROW doesn't work).

Can anyone help here?

Thanks.

Gary

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Sort Question

Probably the easiest way would be to create a pivot table from your source
data. Select the data you would like to work with and the select data -
pivot table. Follow the wizard. Place the team in the right column and the
players nest to the team. Put the averages in the middle and off you go. With
a pivot table you can choose what teams you want to show or not. You will
have to sort by average by selelecting the team right click and select
advanced. Change the sort option and you should have what you want.
--
HTH...

Jim Thomlinson


"G" wrote:

Is there a way to Sort this SOURCE data by highest average and EXCLUDE Team 2
in the sort.

Note that the SOURCE and RESULT data are on the same worksheet.

Here's the SOURCE data:

Column
A B C
Row
15 TEAM PLAYER AVERAGE

16 1 Bob .333

17 1 John .250

18 2 Al .450

19 1 Charlie .500

Here's the RESULT data that I would like:


Column
A B C
Row
1 TEAM PLAYER AVERAGE

2 1 Charlie .500

3 1 Bob .333

4 1 John .250

I know the code for sorting, but can't seem to figure out a way of excluding
the data WITHOUT Deleting it (HIDE ROW doesn't work).

Can anyone help here?

Thanks.

Gary

  #3   Report Post  
Posted to microsoft.public.excel.programming
G G is offline
external usenet poster
 
Posts: 52
Default Sort Question

It seems to me that there must be a simpler way to do this ... isn't there a
function similar to HIDE that will also EXCLUDE cell data from a calculation
based on criteria?

"Jim Thomlinson" wrote:

Probably the easiest way would be to create a pivot table from your source
data. Select the data you would like to work with and the select data -
pivot table. Follow the wizard. Place the team in the right column and the
players nest to the team. Put the averages in the middle and off you go. With
a pivot table you can choose what teams you want to show or not. You will
have to sort by average by selelecting the team right click and select
advanced. Change the sort option and you should have what you want.
--
HTH...

Jim Thomlinson


"G" wrote:

Is there a way to Sort this SOURCE data by highest average and EXCLUDE Team 2
in the sort.

Note that the SOURCE and RESULT data are on the same worksheet.

Here's the SOURCE data:

Column
A B C
Row
15 TEAM PLAYER AVERAGE

16 1 Bob .333

17 1 John .250

18 2 Al .450

19 1 Charlie .500

Here's the RESULT data that I would like:


Column
A B C
Row
1 TEAM PLAYER AVERAGE

2 1 Charlie .500

3 1 Bob .333

4 1 John .250

I know the code for sorting, but can't seem to figure out a way of excluding
the data WITHOUT Deleting it (HIDE ROW doesn't work).

Can anyone help here?

Thanks.

Gary

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sort Question

Just do a two column sort. sort on team for Key 1 and average for key 2


--
Regards,
Tom Ogilvy


"G" wrote in message
...
It seems to me that there must be a simpler way to do this ... isn't there

a
function similar to HIDE that will also EXCLUDE cell data from a

calculation
based on criteria?

"Jim Thomlinson" wrote:

Probably the easiest way would be to create a pivot table from your

source
data. Select the data you would like to work with and the select data -
pivot table. Follow the wizard. Place the team in the right column and

the
players nest to the team. Put the averages in the middle and off you go.

With
a pivot table you can choose what teams you want to show or not. You

will
have to sort by average by selelecting the team right click and select
advanced. Change the sort option and you should have what you want.
--
HTH...

Jim Thomlinson


"G" wrote:

Is there a way to Sort this SOURCE data by highest average and EXCLUDE

Team 2
in the sort.

Note that the SOURCE and RESULT data are on the same worksheet.

Here's the SOURCE data:

Column
A B C
Row
15 TEAM PLAYER AVERAGE

16 1 Bob .333

17 1 John .250

18 2 Al .450

19 1 Charlie .500

Here's the RESULT data that I would like:


Column
A B C
Row
1 TEAM PLAYER AVERAGE

2 1 Charlie .500

3 1 Bob .333

4 1 John .250

I know the code for sorting, but can't seem to figure out a way of

excluding
the data WITHOUT Deleting it (HIDE ROW doesn't work).

Can anyone help here?

Thanks.

Gary



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
Sort Question dwake Excel Discussion (Misc queries) 5 May 4th 10 05:32 PM
Sort question?? SAM SEBAIHI Excel Discussion (Misc queries) 0 November 29th 06 02:03 AM
sort question D Excel Worksheet Functions 0 August 2nd 06 10:08 PM
Sort question pgruening Excel Discussion (Misc queries) 0 May 18th 06 08:22 PM
XML Sort Question Shatin[_2_] Excel Programming 2 August 29th 05 03:49 AM


All times are GMT +1. The time now is 06:29 AM.

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"