View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Daniel.C[_3_] Daniel.C[_3_] is offline
external usenet poster
 
Posts: 133
Default how find max data in range in excel

Another way to do it (array formula, validate with Ctrl+Shift+Enetr) :
=INDEX(A1:C3,MAX((IF(COUNTIF(A1:C3,A1:C3)=MAX(COUN TIF(A1:C3,A1:C3)),1,0)*ROW(A1:C3))),MAX((IF(COUNTI F(A1:C3,A1:C3)=MAX(COUNTIF(A1:C3,A1:C3)),1,0)*COLU MN(A1:C3))))
HTH
Daniel

One thought is to re-lay the multi col data into a column range first,
then apply an index n match to extract the name with the max counts

Assume your 3 col source data as posted is in A1:C3
Put in say, E1:
=OFFSET($A$1,INT((ROWS($1:1)-1)/3),MOD(ROWS($1:1)-1,3))
Copy E1 down to E9, this re-lays the source data into a col range

Then put in F1, array-enter the formula,
ie press CTRL+SHIFT+ENTER to confirm the formula:
=INDEX(E1:E9,MATCH(MAX(COUNTIF(E1:E9,E1:E9)),COUNT IF(E1:E9,E1:E9),0))
F1 will return the name with the max counts within E1:E9. In the event of
any ties in the max counts, then the name (amongst the ties) which appears
first, ie higher up in E1:E9 will be returned.