Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 390
Default Help on sorting function

Hello,
I need some help to understand a formula that was written for me using a
table that had 4 teams in it. It worked perfectly, ie in the UEFA Champions
league. Now I want to use the same formula that will allow me to sort 32
teams.
It only sorts partially with the 32 teams.
The formula is
{=INDEX(Teams,MATCH(LARGE(GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,ROWS($J$7:$J7)),GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,0))}
Teams is the range name for the 32 teams, GD is the range name for the goal
difference and Pts is the range name for the points that each team has
received after each game. (This is soccer by the way.)
It must sort points first, then if the points are equal the goal difference
then the alphabetical order of the team names.

I cannot remember the persons name that helped me with the formula. It was
here on the group discussion forum.

Thank you for your help in advance.

Max

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art Art is offline
external usenet poster
 
Posts: 587
Default Help on sorting function

Max,

I have to say that I don't fully understand how the function works, but it
appears to be sorting GD first, not Pts. If your results are consistent with
this, then just interchange the array names in the formula. The division is
what is giving you the sort priority -- so by diving Pts by 100 it is making
it less important than GD.



"Max" wrote:

Hello,
I need some help to understand a formula that was written for me using a
table that had 4 teams in it. It worked perfectly, ie in the UEFA Champions
league. Now I want to use the same formula that will allow me to sort 32
teams.
It only sorts partially with the 32 teams.
The formula is
{=INDEX(Teams,MATCH(LARGE(GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,ROWS($J$7:$J7)),GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,0))}
Teams is the range name for the 32 teams, GD is the range name for the goal
difference and Pts is the range name for the points that each team has
received after each game. (This is soccer by the way.)
It must sort points first, then if the points are equal the goal difference
then the alphabetical order of the team names.

I cannot remember the persons name that helped me with the formula. It was
here on the group discussion forum.

Thank you for your help in advance.

Max

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 390
Default Help on sorting function

Hello Art,
Well done and thank you.
The option to make the change worked.
I have gone back and checked the Group type tables and yes you are correct,
the GD is being ranked first.

Thank you and again and well done.

Much appreciated.

Max



"Art" wrote:

Max,

I have to say that I don't fully understand how the function works, but it
appears to be sorting GD first, not Pts. If your results are consistent with
this, then just interchange the array names in the formula. The division is
what is giving you the sort priority -- so by diving Pts by 100 it is making
it less important than GD.



"Max" wrote:

Hello,
I need some help to understand a formula that was written for me using a
table that had 4 teams in it. It worked perfectly, ie in the UEFA Champions
league. Now I want to use the same formula that will allow me to sort 32
teams.
It only sorts partially with the 32 teams.
The formula is
{=INDEX(Teams,MATCH(LARGE(GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,ROWS($J$7:$J7)),GD+Pts/10^2+COUNTIF(Teams,""&Teams)/10^4,0))}
Teams is the range name for the 32 teams, GD is the range name for the goal
difference and Pts is the range name for the points that each team has
received after each game. (This is soccer by the way.)
It must sort points first, then if the points are equal the goal difference
then the alphabetical order of the team names.

I cannot remember the persons name that helped me with the formula. It was
here on the group discussion forum.

Thank you for your help in advance.

Max

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
Ranking or sorting function craig Excel Worksheet Functions 4 June 4th 07 03:51 PM
Sorting a column to use with an INDEX function macshimi Excel Worksheet Functions 1 January 14th 06 11:27 AM
Sorting function button jmon Excel Worksheet Functions 1 October 24th 05 05:55 PM
Sorting - Macro or worksheet function Danny Excel Worksheet Functions 1 August 2nd 05 09:17 PM
Need help with sorting function monkeytrader Excel Worksheet Functions 0 February 16th 05 05:27 PM


All times are GMT +1. The time now is 08:15 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"