Min functions

D

DaveN

Hi,

I have a spreadsheet with dates in column A, names in column B and results
in the form of numbers in column C. Some of the cells in columns B and C are
blank. I then have a list of all the names in column E. Like this:
A B C E F G
01/01/08 Peter 5 Peter
01/02/08 James
01/03/08 James 4 Dan
01/04/08 Henry
01/05/08 Peter 3
01/06/08 Dan 1
01/07/08 Henry 1
01/08/08 Dan 4

My problem is that in columns F and G, I want to display the minimum value
(from C) and the date in which this result took place. The results i want
would to show are: Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?
 
M

Mike H

Dave,

For the minimum value use
=MIN(IF(B1:B8=E1,C1:C8,FALSE))

For the date use
=INDEX(A1:A8,MIN(IF(B1:B8=E1,C1:C8,FALSE)))

In both cases E1 is the name.

Both of these are array formula and must be entered by pressing
CTRL+Shift+Enter and NOT by simply pressing enter. If you do it correctly
then Excel will put curly brackets around the formula {}. You can't type
these yourself.

Mike
 
M

Mike H

You'll want to drag them for the other names so make the references absolute


=INDEX($A$1:$A$8,MIN(IF($B$1:$B$8=E1,$C$1:$C$8,FALSE)))

Mike
 
D

DaveN

Thanks for your help Mike, the first formula works perfectly, but when i
enter the 2nd formula for the date i only get #REF!. Any ideas why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top