Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
flygis
 
Posts: n/a
Default UDF to sort array with multiple columns

Hi all,

I have just discovered the UDF ability in excel. Until now I have done
all my calculations with existing functions, which sometimes is hard
and
give very large help sheets with formulas.

Now I have a problem with a soccer table that I want to sort (World
Champs.) I have managed to do it with exisint functions, but it would
be
fun to do it with a UDF.
Searching the web, I have not been so much more clever, that I succeed
in my task.

This is an example of a table I want to sort (cells A2:E5 excluding the
header):

Team GoalFor GoalAgainst GoalDiff Points
Tr.a.To 3 4 -1 4
Paraguay 1 5 -4 0
England 4 5 -1 4
Sweden 7 1 6 9

This table should then be sorted to a new table (cells F2:J5 excluding
the header) by sorting the Points column followed by the GoalDiff and
GoalFor columns:

Team GoalFor GoalAgainst GoalDiff Points
Sweden 7 1 6 9
England 4 5 -1 4
Tr.a.To 3 4 -1 4
Paraguay 1 5 -4 0


Is this doable in an UDF?
Have anyone got a link to a solution?


If two or more teams has the same values in these columns they have to
be compared only counting the matches between them. But that is later
problem...

Regards,
Johan

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 on rows (not columns) po2206 Excel Discussion (Misc queries) 2 March 16th 06 07:55 PM
Sorting multiple columns as 1 list alphabetically? philpott Excel Discussion (Misc queries) 4 October 19th 05 06:31 PM
Array Brad Excel Worksheet Functions 9 October 17th 05 09:00 PM
how do I sort several columns in excel race510 Excel Worksheet Functions 1 August 6th 05 12:39 AM
How can I sort multiple months/years WITHOUT Alpha order taking o. LisaMU Excel Worksheet Functions 1 April 13th 05 04:46 PM


All times are GMT +1. The time now is 04:31 PM.

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

About Us

"It's about Microsoft Excel"