Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

How on EARTH can I do this:

Name CVS JOBS INTERVIEWS OFFERS STARTS
Peter 9 5 1 0 1
Paul 9 5 1 0 1
Susan 4 1 3 0 0
Jane 3 3 4 1 0
Andrew 3 4 2 0 0
John 2 4 2 1 0
Roger 2 3 1 1 0
Lewis 2 6 3 0 0
Rob 2 4 4 2 0
Keith 2 3 3 2 2
Jason 2 6 3 0 0
Jim 2 6 4 1 0
Ken 2 1 1 0 1
Matt 2 0 0 0 0


Top CVs: Peter and Paul
Top Jobs: Jason and Jim and Lewis
Interviews: Jane and Rob and Jim
Top Offers: Rob and Keith
Top Starts: Keith

Many thanks,

Rob

  #2   Report Post  
bpeltzer
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

Can you add a helper column for each metric?
Let's just look at Name and CVs, assuming that 'Name' is in A1, etc.
Then clear C1 and in C2 put =IF(RANK(B2,B$2:B$6)=1,C1 & $A2 & " and ",C1).
Fill that formula through column C, and replace the range B$2:B$6 with the
appropriate ending row. If your final row is 6, then put this formula
anywhere to see the result: ="Most CVs: " & LEFT(C6,LEN(C6)-5)
The same approach would work for each metric, just changing the references
to B and C to point to the raw data and the new helper column, respectively.
HTH. --Bruce

" wrote:

How on EARTH can I do this:

Name CVS JOBS INTERVIEWS OFFERS STARTS
Peter 9 5 1 0 1
Paul 9 5 1 0 1
Susan 4 1 3 0 0
Jane 3 3 4 1 0
Andrew 3 4 2 0 0
John 2 4 2 1 0
Roger 2 3 1 1 0
Lewis 2 6 3 0 0
Rob 2 4 4 2 0
Keith 2 3 3 2 2
Jason 2 6 3 0 0
Jim 2 6 4 1 0
Ken 2 1 1 0 1
Matt 2 0 0 0 0


Top CVs: Peter and Paul
Top Jobs: Jason and Jim and Lewis
Interviews: Jane and Rob and Jim
Top Offers: Rob and Keith
Top Starts: Keith

Many thanks,

Rob


  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

Rob,

You need to use a User-Derfined-Function (or a WHOLE lot of worksheet functions).

Copy the code below into a code module in the workbook where you want the results, and then use the
function like:

=Top(B2:B15,$A$2:$A$15)

This example usage is for your example table starting in cell A1. Copy the cell with the formula to
the right to match your other columns.

HTH,
Bernie
MS Excel MVP


Function Top(Scores As Range, Names As Range) As String
Dim i As Integer
Dim oldi As Integer
Dim myMax As Double
myMax = Application.Max(Scores)
i = Application.Match(myMax, Scores, False)
On Error GoTo AllFound
Start:
If Top = "" Then
Top = Names(i).Value
Else
Top = Top & " and " & Names(i).Value
End If
oldi = i
i = Application.Match(myMax, Scores.Offset(i, 0). _
Resize(Scores.Cells.Count - i), False)
i = i + oldi
GoTo Start
AllFound:
End Function

wrote in message ups.com...
How on EARTH can I do this:

Name CVS JOBS INTERVIEWS OFFERS STARTS
Peter 9 5 1 0 1
Paul 9 5 1 0 1
Susan 4 1 3 0 0
Jane 3 3 4 1 0
Andrew 3 4 2 0 0
John 2 4 2 1 0
Roger 2 3 1 1 0
Lewis 2 6 3 0 0
Rob 2 4 4 2 0
Keith 2 3 3 2 2
Jason 2 6 3 0 0
Jim 2 6 4 1 0
Ken 2 1 1 0 1
Matt 2 0 0 0 0


Top CVs: Peter and Paul
Top Jobs: Jason and Jim and Lewis
Interviews: Jane and Rob and Jim
Top Offers: Rob and Keith
Top Starts: Keith

Many thanks,

Rob



  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

On 27 Oct 2005 05:42:19 -0700, wrote:

How on EARTH can I do this:

Name CVS JOBS INTERVIEWS OFFERS STARTS
Peter 9 5 1 0 1
Paul 9 5 1 0 1
Susan 4 1 3 0 0
Jane 3 3 4 1 0
Andrew 3 4 2 0 0
John 2 4 2 1 0
Roger 2 3 1 1 0
Lewis 2 6 3 0 0
Rob 2 4 4 2 0
Keith 2 3 3 2 2
Jason 2 6 3 0 0
Jim 2 6 4 1 0
Ken 2 1 1 0 1
Matt 2 0 0 0 0


Top CVs: Peter and Paul
Top Jobs: Jason and Jim and Lewis
Interviews: Jane and Rob and Jim
Top Offers: Rob and Keith
Top Starts: Keith

Many thanks,

Rob


That's tough to do, I think, without using VBA.

To come up with a usable output, though, is not as difficult.

1. Select your table and Insert/Name/Create and check Top Row.
2. Copy your column names to your results area. I used O1:S1 (no need to copy
the Name: Name)

3. Select a range O2:On where n is the maximum number of candidates you might
be looking at.

4. Format/Conditional Formatting (assuming O2 is the active cell)
Condition 1: Formula Is =ISNA(O2)
Format Font Color = White (or whatever your background color is)
Add
Condition 2: Cell Value Is Equal To =O1
Format Font Color = White (or whatever your background color is)
OK

5. Select O2:On
6. Paste the following formula into the formula bar. Then hold down
<ctrl<shift while you hit <enter. Excel should place braces {...} around
the formula:

=INDEX(Name,LARGE((MAX(INDIRECT(O1))=
INDIRECT(O1))*ROW(INDIRECT(O1)),ROW(
INDIRECT("1:"&COUNTIF(INDIRECT(O1),MAX(
INDIRECT(O1))))))-1)

7. Copy/drag across to column S.

If you require a different type of output, post back as it could be done using
VBA.


--ron
  #5   Report Post  
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

bpeltzer, Bernie Deitrick, Ron Rosenfeld - you are all amazing.

Thanks very much



  #6   Report Post  
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

Let's make this even harder then....

I was wondering if it was possible to say

Top CVs: Peter and Paul - 9 each
Top Jobs: Jason and Jim and Lewis - 6 each

etc?

  #7   Report Post  
Bernie Deitrick
 
Posts: n/a
Default Joint ranking (never seen a satisfactory answer!)

Function Top(Scores As Range, Names As Range) As String
Dim i As Integer
Dim oldi As Integer
Dim myMax As Double
myMax = Application.Max(Scores)
i = Application.Match(myMax, Scores, False)
On Error GoTo AllFound
Start:
If Top = "" Then
Top = Names(i).Value
Else
Top = Top & " and " & Names(i).Value
End If
oldi = i
i = Application.Match(myMax, Scores.Offset(i, 0). _
Resize(Scores.Cells.Count - i), False)
i = i + oldi
GoTo Start
AllFound:
If InStr(1, Top, " and ") 0 Then
Top = Top & " - " & myMax & " each"
Else
Top = Top & " - " & myMax
End If
End Function

HTH,
Bernie
MS Excel MVP


wrote in message oups.com...
Let's make this even harder then....

I was wondering if it was possible to say

Top CVs: Peter and Paul - 9 each
Top Jobs: Jason and Jim and Lewis - 6 each

etc?



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
Can Drop Down Boxes jump to the answer as you type? rrucksdashel Excel Discussion (Misc queries) 4 November 1st 05 10:04 PM
i cant get the exact answer e.g answer is 13.49% i got 13.00% zai Excel Discussion (Misc queries) 3 June 9th 05 01:00 PM
Ranking Using Grand Total nostalgie Excel Discussion (Misc queries) 0 April 9th 05 03:27 PM
Excel Answer Wizard BROKEN Mark Diaz Excel Discussion (Misc queries) 1 March 11th 05 10:19 PM
coverting answer from Radian mode to degree mode Xmastrzman Excel Worksheet Functions 1 November 10th 04 04:45 PM


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