LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default trying to figure out Min and Max in a sheet

Say your names are in A2:A99 and your amounts are in B2:B99.

=max(b2:b99)
will show the largest amount in b2:b99

=min(b2:b99)
will show the smallest amount in b2:b99

To get the name of the first matching amount (lowest number row) with the
highest amount:

=index(a2:a99,match(max(b2:b99),b2:b99,0))

Change max to min to get the name of the first matching amount with the lowest
amount:

=index(a2:a99,match(min(b2:b99),b2:b99,0))

But the bad news is that if there are ties for either the min or max, these
formulas will always return the name in the lower numbered row (closest to the
top of the data).


ps.

=large(b2:b99,7)
will get the 7th largest amount.

=small(b2:b99,12)
will get the 12 smallest amount



carolruth11 wrote:

Hi, I am a new user. I am trying to write a report and trying to figure out
who is the highest salesperson and who is the lowest salesperson within this
report. I believe that using the functions MIN and MAX would be the best way
to do this, but I am unsure! Could someone help me PLEASE? I cannot figure
it out. It is for a homework assignment and it is due by Sunday night.

I really appreciate any and all help!
Carol


--

Dave Peterson
 
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
HOW TO 'BLINK' A FIGURE INSTEAD OFF BOLDING THE FIGURE Nad.Engoor Excel Worksheet Functions 3 December 30th 08 03:04 PM
HOW DO I COPY A TOTAL FIGURE FROM 1 SHEET TO NEXT ADDING RUNNING T SANDRA Excel Worksheet Functions 0 October 8th 07 01:27 PM
Can't figure it out . . . [email protected] Excel Worksheet Functions 8 May 3rd 06 04:29 AM
Max figure help Colin Vicary Excel Discussion (Misc queries) 1 March 28th 06 01:45 PM
Still trying to figure it out Robertgn Excel Worksheet Functions 2 December 10th 05 12:44 PM


All times are GMT +1. The time now is 09:14 PM.

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"