Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Renee
 
Posts: n/a
Default Conditional Formula question

Good afternoon all,

I have 3 columns: Teacher Trainee Score

The teachers' names will repeat as each teacher will have multiple trainees.
I used advance filter to copy unique values of Teacher Names to a new
location in the workbook.

Next to each Teachers' name I would like to display the Trainee's name with
the maximum score among that Teacher's trainees.

Example
A B C
1 Teacher Trainee Score
2 Bob Sarah 100
3 Bob James 95
4 Michelle Harold 97
5 Michelle Lori 93

Teachers' Top performers!
8 Bob Sara
9 Michelle Harold

I have been experimenting with:
B8 would be =If(AND(C2:C5 = Max(C2:C5), A8 = A1:A5),B1:B5)

I would appreciate any guidance here!
Renee
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Conditional Formula question

=INDEX(B1:B20,SUMPRODUCT(--(C1:C20=MAX(IF(A1:A20=A2,C1:C20))),ROW(A1:A20)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Renee" wrote in message
...
Good afternoon all,

I have 3 columns: Teacher Trainee Score

The teachers' names will repeat as each teacher will have multiple

trainees.
I used advance filter to copy unique values of Teacher Names to a new
location in the workbook.

Next to each Teachers' name I would like to display the Trainee's name

with
the maximum score among that Teacher's trainees.

Example
A B C
1 Teacher Trainee Score
2 Bob Sarah 100
3 Bob James 95
4 Michelle Harold 97
5 Michelle Lori 93

Teachers' Top performers!
8 Bob Sara
9 Michelle Harold

I have been experimenting with:
B8 would be =If(AND(C2:C5 = Max(C2:C5), A8 = A1:A5),B1:B5)

I would appreciate any guidance here!
Renee



  #3   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default Conditional Formula question


I'd be tempted to use a user defined function here which scanned through
the teachers names and kept track of the maximum before reporting at the
end.

Martin

http://homepage.ntlworld.com/martin.rice1/


--
mrice
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=532716

  #4   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Conditional Formula question

Here's one possible solution where ties for top score are taken into
consideration. Also, it will allow you to easily display any amount of
top scores, such as Top 3, Top 5, Top 10, etc.

Assuming that A4:C15 contains the data, copy a unique list of teacher
names to Column E, starting at E4, then try the following...

F2: enter 1, indicating that you want a Top 1 list. If, for example,
you want a Top 3 list, enter 3 instead.

F4, copied down:

=LARGE(IF($A$4:$A$15=E4,$C$4:$C$15),$F$2)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER

G4, copied down:

=SUMPRODUCT(--($A$4:$A$15=E4),--($C$4:$C$15=F4))

H4, copied across and down:

=IF(COLUMNS($H4:H4)<=$G4,INDEX($B$4:$B$15,MATCH(LA RGE(IF($A$4:$A$15=$E4,$
C$4:$C$15-ROW($C$4:$C$15)/10^5),COLUMNS($H4:H4)),$C$4:$C$15-ROW($C$4:$C$1
5)/10^5,0)),"")

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER

Hope this helps!

In article ,
Renee wrote:

Good afternoon all,

I have 3 columns: Teacher Trainee Score

The teachers' names will repeat as each teacher will have multiple trainees.
I used advance filter to copy unique values of Teacher Names to a new
location in the workbook.

Next to each Teachers' name I would like to display the Trainee's name with
the maximum score among that Teacher's trainees.

Example
A B C
1 Teacher Trainee Score
2 Bob Sarah 100
3 Bob James 95
4 Michelle Harold 97
5 Michelle Lori 93

Teachers' Top performers!
8 Bob Sara
9 Michelle Harold

I have been experimenting with:
B8 would be =If(AND(C2:C5 = Max(C2:C5), A8 = A1:A5),B1:B5)

I would appreciate any guidance here!
Renee

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
conditional formatting: problem entering EOMONTH formula... MeatLightning Excel Discussion (Misc queries) 0 February 6th 06 09:35 PM
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 0 February 6th 06 09:34 PM
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 1 February 6th 06 09:28 PM
I get error with "ROWS" in the formula - nested formula question Marie J-son Excel Worksheet Functions 0 January 4th 06 01:55 PM
How does special formula apply to conditional formatting? Frances Excel Discussion (Misc queries) 1 August 22nd 05 01:09 PM


All times are GMT +1. The time now is 11:31 AM.

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"