#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default min & max values

I am trying to select the maximum and minimum values in an Excel 2000
spreadsheet. The guiding criteria is in column A and the selection values
are in column B. For example (ColumnA - ColumnB)

ID1220 - 5
ID1220 - 10
ID1624 - 8
ID1220 - 5
ID1624 - 16
ID1220 - 11

The output I would like is the minimum & maximum values for the ID1220
(which in this case are & 11) and the minimum & maximum values for the
ID1624 (8 & 16). Values in columns A & B will not be in any type of sorted
arrangement. I suspect I have to do an array, but am not quite sure how to
go about it.
Robert


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default min & max values

Try these. Both are array formulas and need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER):

E1 = ID1220

For the MIN:

=MIN(IF(A1:A6=E1,B1:B6))

For the MAX:

=MAX(IF(A1:A6=E1,B1:B6))

Biff

"Robert Dieckmann" wrote in message
...
I am trying to select the maximum and minimum values in an Excel 2000
spreadsheet. The guiding criteria is in column A and the selection values
are in column B. For example (ColumnA - ColumnB)

ID1220 - 5
ID1220 - 10
ID1624 - 8
ID1220 - 5
ID1624 - 16
ID1220 - 11

The output I would like is the minimum & maximum values for the ID1220
(which in this case are & 11) and the minimum & maximum values for the
ID1624 (8 & 16). Values in columns A & B will not be in any type of
sorted arrangement. I suspect I have to do an array, but am not quite
sure how to go about it.
Robert



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default min & max values

=MIN(IF($A$1:$A$6=C1,$B$1:$B$6))&" & "&MAX(($A$1:$A$6=C1)*($B$1:$B$6))

ctrl+shift+enter, not just enter
the above formula is combined min & max

"Robert Dieckmann" wrote:

I am trying to select the maximum and minimum values in an Excel 2000
spreadsheet. The guiding criteria is in column A and the selection values
are in column B. For example (ColumnA - ColumnB)

ID1220 - 5
ID1220 - 10
ID1624 - 8
ID1220 - 5
ID1624 - 16
ID1220 - 11

The output I would like is the minimum & maximum values for the ID1220
(which in this case are & 11) and the minimum & maximum values for the
ID1624 (8 & 16). Values in columns A & B will not be in any type of sorted
arrangement. I suspect I have to do an array, but am not quite sure how to
go about it.
Robert



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default min & max values

maybe sumproduct can also do this...
say A1 is the search ID####

A2:B7 are the search range
(min & max) formula on cell say B2 [copy paste the formula below]

=SUMPRODUCT(SMALL((A2:A7=A1)*(B2:B7),1+SUM(1*(A2:A 7<A1))))&" &
"&SUMPRODUCT(MAX((A2:A7=A1)*(B2:B7)))

no need {}...maybe re-arrange to suit..

--
*****
birds of the same feather flock together..



"Robert Dieckmann" wrote:

I am trying to select the maximum and minimum values in an Excel 2000
spreadsheet. The guiding criteria is in column A and the selection values
are in column B. For example (ColumnA - ColumnB)

ID1220 - 5
ID1220 - 10
ID1624 - 8
ID1220 - 5
ID1624 - 16
ID1220 - 11

The output I would like is the minimum & maximum values for the ID1220
(which in this case are & 11) and the minimum & maximum values for the
ID1624 (8 & 16). Values in columns A & B will not be in any type of sorted
arrangement. I suspect I have to do an array, but am not quite sure how to
go about it.
Robert



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default min & max values

=SUMPRODUCT(SMALL((A2:A7=A1)*(B2:B7),1+SUM(1*(A2: A7<A1))))

That only works if all the values are positive.

I'd be willing to bet that:

=MIN(IF(A2:A7=A1,B2:B7))

is more efficient.

Biff

"driller" wrote in message
...
maybe sumproduct can also do this...
say A1 is the search ID####

A2:B7 are the search range
(min & max) formula on cell say B2 [copy paste the formula below]

=SUMPRODUCT(SMALL((A2:A7=A1)*(B2:B7),1+SUM(1*(A2:A 7<A1))))&" &
"&SUMPRODUCT(MAX((A2:A7=A1)*(B2:B7)))

no need {}...maybe re-arrange to suit..

--
*****
birds of the same feather flock together..



"Robert Dieckmann" wrote:

I am trying to select the maximum and minimum values in an Excel 2000
spreadsheet. The guiding criteria is in column A and the selection
values
are in column B. For example (ColumnA - ColumnB)

ID1220 - 5
ID1220 - 10
ID1624 - 8
ID1220 - 5
ID1624 - 16
ID1220 - 11

The output I would like is the minimum & maximum values for the ID1220
(which in this case are & 11) and the minimum & maximum values for the
ID1624 (8 & 16). Values in columns A & B will not be in any type of
sorted
arrangement. I suspect I have to do an array, but am not quite sure how
to
go about it.
Robert





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
Using two values to report multiple values LJ Excel Discussion (Misc queries) 0 November 16th 06 05:19 PM
Return across Row Numeric Values Matching EXACT Month & Year for Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 October 22nd 06 11:30 PM
List of values office guy10 Excel Discussion (Misc queries) 2 September 22nd 06 07:28 PM
Referencing a specific number to more general values in a table. AJL Excel Worksheet Functions 0 September 19th 06 05:11 PM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM


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