#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Min functions

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Min functions

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


"DaveN" wrote:

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Min functions

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,FAL SE)))

Mike

"Mike H" wrote:

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


"DaveN" wrote:

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Min functions

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?

"Mike H" wrote:

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,FAL SE)))

Mike

"Mike H" wrote:

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


"DaveN" wrote:

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Min functions

If you copy and pasted it then array enter it then it should work


Mike


"DaveN" wrote:

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?

"Mike H" wrote:

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,FAL SE)))

Mike

"Mike H" wrote:

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


"DaveN" wrote:

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Min functions

No sorry, i'm still getting #REF!

"Mike H" wrote:

If you copy and pasted it then array enter it then it should work


Mike


"DaveN" wrote:

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?

"Mike H" wrote:

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,FAL SE)))

Mike

"Mike H" wrote:

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


"DaveN" wrote:

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 a Peter 3 01/05/08, James 4 01/03/08, Henry 1 01/07/08 and
Dan 1 01/06/08.

Can anyone help?

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
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
formula/functions for average and if functions Petu71 Excel Worksheet Functions 2 August 5th 07 08:25 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Looking for a site with functions that substitute the ATP functions Franz Verga Excel Worksheet Functions 3 June 24th 06 04:30 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


All times are GMT +1. The time now is 02:04 PM.

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"