Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Adapting MAX function

I have created a forumla in excel which selects the the highest value in a
range based on certain criteria contained in a neighbouring cell, it is shown
below:-

=MAX(IF(YOT!$B$3:$B$150="England",(YOT!C$3:C$149)) )

Can this formula be adapted so it does not pick the highest value, but would
pick up the row heading of the row with the highest value, in this example it
would be the value held in cell A

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Adapting MAX function

Try:

=INDEX($A$3:$A$150,MATCH(MAX(IF($B$3:$B$150="Engla nd",$C$3:$C$150)),$C$3:$C$150,0))

HTH

"nir020" wrote:

I have created a forumla in excel which selects the the highest value in a
range based on certain criteria contained in a neighbouring cell, it is shown
below:-

=MAX(IF(YOT!$B$3:$B$150="England",(YOT!C$3:C$149)) )

Can this formula be adapted so it does not pick the highest value, but would
pick up the row heading of the row with the highest value, in this example it
would be the value held in cell A

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Adapting MAX function

Assuming that the conditional MAX is unique for England and that it is
not the same as another country's, the following formula should produce
the header:

=INDEX(A$3:A$150,MATCH(MAX(IF(YOT!$B$3:$B$150="Eng land",YOT!C$3:C$149)),C$3:C$150,0)

HTH
Kostis Vezerides

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Adapting MAX function

..... Enter with Control+Shift+enter

"nir020" wrote:

I have created a forumla in excel which selects the the highest value in a
range based on certain criteria contained in a neighbouring cell, it is shown
below:-

=MAX(IF(YOT!$B$3:$B$150="England",(YOT!C$3:C$149)) )

Can this formula be adapted so it does not pick the highest value, but would
pick up the row heading of the row with the highest value, in this example it
would be the value held in cell A

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Adapting MAX function

Still array entered...

=INDEX(YOT!$A$3:$A$150,MATCH(MAX(IF(YOT!$B$3:$B$15 0="England",(YOT!C$3:C$149))),IF(YOT!$B$3:$B$150=" England",(YOT!C$3:C$149)),0))

--
Regards,
Dave


"nir020" wrote:

I have created a forumla in excel which selects the the highest value in a
range based on certain criteria contained in a neighbouring cell, it is shown
below:-

=MAX(IF(YOT!$B$3:$B$150="England",(YOT!C$3:C$149)) )

Can this formula be adapted so it does not pick the highest value, but would
pick up the row heading of the row with the highest value, in this example it
would be the value held in cell A

Thanks

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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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