Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]() |
#5
![]() |
|||
|
|||
![]()
bpeltzer, Bernie Deitrick, Ron Rosenfeld - you are all amazing.
Thanks very much |
#6
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can Drop Down Boxes jump to the answer as you type? | Excel Discussion (Misc queries) | |||
i cant get the exact answer e.g answer is 13.49% i got 13.00% | Excel Discussion (Misc queries) | |||
Ranking Using Grand Total | Excel Discussion (Misc queries) | |||
Excel Answer Wizard BROKEN | Excel Discussion (Misc queries) | |||
coverting answer from Radian mode to degree mode | Excel Worksheet Functions |