Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Indicating the first occurance of the max value in a range

What to do to indicate the first highest score for each person?


Here's the example:

ID score score used
a 1
a 2 2
b 3
b 2
b 1
b 4 4
b 4
c 2 2
d 2 2
d 2
e 1 1
e 1

I have a formula (thanks to the Excel expert) that indicates all the max
values in a range: =IF(MAX(IF($A$2:$A13=A2, $B$2:$B13)), B2, " "), but I'd
like to have it to show right away the first occurance of the max value.

Thank you for your help.
--
Aline Yiu
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Indicating the first occurance of the max value in a range

One way

With data assumed in A2:B13

Put in C2 ("Score used" col), then array-enter the formula
by pressing CTRL+SHIFT+ENTER:
=IF(AND(MAX(IF($A$2:$A$13=A2,$B$2:$B$13))=B2,SUMPR ODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))<2),B2,"")
Copy C2 down to C13
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Aline Yiu" wrote in message
...
What to do to indicate the first highest score for each person?


Here's the example:

ID score score used
a 1
a 2 2
b 3
b 2
b 1
b 4 4
b 4
c 2 2
d 2 2
d 2
e 1 1
e 1

I have a formula (thanks to the Excel expert) that indicates all the max
values in a range: =IF(MAX(IF($A$2:$A13=A2, $B$2:$B13)), B2, " "), but
I'd
like to have it to show right away the first occurance of the max value.

Thank you for your help.
--
Aline Yiu



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
Cells indicating range of a table Ed Excel Discussion (Misc queries) 0 November 29th 06 06:09 PM
Cells indicating range of a table JMay Excel Discussion (Misc queries) 0 November 29th 06 05:58 PM
Cells indicating range of a table Ed Excel Discussion (Misc queries) 0 November 29th 06 05:42 PM
Find last occurance of text in range farutherford Excel Worksheet Functions 5 August 30th 05 02:00 AM
occurance of numbers in cell range Dillenger Excel Worksheet Functions 14 February 21st 05 06:45 PM


All times are GMT +1. The time now is 06:30 AM.

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

About Us

"It's about Microsoft Excel"