View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Database question

One way (array-entered):

=INDEX($A$2:$A$1000,MATCH(LARGE(($B$2:$B$1000="Nor th")*$E$2:$E$1000,1),($
B$2:$B$1000="North")*$E$2:$E$1000,0))

Change the 1 in the LARGE() function to 2, 3, etc.



In article , "Jim" wrote:

Sample database:

Name Zone Agency Month Amount
John Doe West Smith Jan 150,000
Bill Smith North Johnson Feb 175,000

Given a database like above with hundreds of entries, what array formula
would one use to find the following info:

1. Which person from the North Zone had the highest value sale in the month
of Jan?
2. Which person from the North Zone had the 2nd highest value sale in the
month of Jan?
How about the 3rd highest?

If you can give me the direction to go I think I can figure out how to
answer other similar questions. Thanks alot!!, Jim