[mso] Re: FW: Excel: Ranked List problem

I've only had a quick look at this, I used RANK to get the values as you
showed and then used the formula shown below to give the results =
displayed
(the formula shown is the one for row 12, if you enter the values in =
column
G to tell the formula where the bottom row is in the HLOOKUP then you =
should
be able to copy the formula).

     Col A               B       C         D    E                    F
G
8     Name                                      =09
9     Partridge           2       4           3   1
IT,English,Science,Math     5
10    Hare                4       2           1   3
Science,Math,IT,English     4
11    Smith               1       3           2   4
English,Science,Math,IT     3
12    Jones               4       1           1   3
Math,Science,IT,English     2
13                   English   Math     Science  IT     =09

=3DCONCATENATE(IF(COUNTIF($B12:$E12,"=3D1")>0,HLOOKUP(1,$B12:$E$13,G12,0)=
,HLOOKU
P(1,$B12:$E$13,G12,1)),",",IF(COUNTIF($B12:$E12,"=3D2")>0,HLOOKUP(2,$B12:=
$E$13
,G12,0),HLOOKUP(2,$B12:$E$13,G12,1)),",",IF(COUNTIF($B12:$E12,"=3D3")>0,H=
LOOKU
P(3,$B12:$E$13,G12,0),HLOOKUP(3,$B12:$E$13,G12,1)),",",IF(COUNTIF($B12:$E=
12,
"=3D4")>0,HLOOKUP(4,$B12:$E$13,G12,0),HLOOKUP(4,$B12:$E$13,G12,1)))

I can't guarantee it would work in all situations, if you haven't got an
exact match for HLOOKUP then you have to settle for the nearest unless =
you
want to develop the formula further to prevent #N/A being returned but =
it
seems to work OK for this data.

(I hope this comes to you free of the dreaded =3D3Ds)

Andrea Jones
www.allaboutoffice.co.uk


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On =
Behalf
Of Andrew
Sent: 30 April 2006 00:17
To: mso@xxxxxxxxxxxxx
Subject: [mso] FW: Excel: Ranked List problem


I have a list of names in Col A with scores for (as an example) 4 =
subjects
in Cols B to E.  The columns are headed with 'Name', 'English', 'Math',
'Science', 'IT'.  I need to rank the scores for each name (that I can do
with RANK) and thus produce a ranked list (as a string)against each =
name,
for example, "Math, English, IT, Science", if the ranking were 2,1,4,3.

Example Table A1:E5

Name       English     Math  Science       IT
Partridge       19       15       18       20
Hare            12       19       20       18
Smith           16       14       15       12
Jones           13       17       17       14

I can rank these scores for each Name with RANK, which produces (as you
would expect):

English     Math  Science     IT
      2        4        3      1
      4        2        1      3
      1        3        2      4
      4        1        1      3

What I would like to do, however, is to produce a string for each name =
as:

IT, English, Science, Math
Science, Math, IT, English
...

I might do this, perhaps with a CHOOSE dependent on an INDEX (i.e. using
INDEX to select the column containing 1 and CHOOSE to print the header =
of
that column), but a problem arises in the 4th row where Jones should =
have:

=3DMath, =3DScience, IT, English

I am not so concerned about the '=3D' sign (though it would be nice).  =
The
bugbear is that CHOOSE won't do it!

I wonder if anyone can help (if not immediately, then it should prove a =
nice
puzzle for a long weekend!)

Andrew Kendon=20

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx =
or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top.  This will allow you to unsubscribe your email
address or change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, =
send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an =
invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files: http://www.smartgroups.com/vault/msofiles

If you are using Outlook and you see a lot of unnecessary code in your =
email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

--=20
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: =
28/04/2006
=20

--=20
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: =
28/04/2006
=20

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: