Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
stevenva
 
Posts: n/a
Default How to return min, mean, max using criteria?


How can I return the min, mean, and max values in one column based on a
value (criterion) in another column. For example, how can I return the
mean price (col 2)for all SWE4s (col 1)? Thanks for your guidance!

Item Price
NETAD 3 $8,985.60
SWE 4 $10,368.00
NET 2 $7,142.40
AD A4 $4,867.20
LYST 1 $5,529.60
LYST 2 $5,184.00
SWE 4 $11,059.20
NET 3 $9,216.00
NET 4 $1,209.60
NET 4 $1,152.00
IA 4 $1,324.80
SE 4 $1,198.08
LYST 2 $6,946.56


--
stevenva
------------------------------------------------------------------------
stevenva's Profile: http://www.excelforum.com/member.php...o&userid=16100
View this thread: http://www.excelforum.com/showthread...hreadid=275496

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Steve,

With your criteriion in column A, and values in column B: assuming 10 rows
of data - you can increase that to match your actual data.

Mean (average):

=SUMIF(A1:A10,"SWE4",B1:B10)/COUNTIF(A1:A10,"SWE4")

Max:

Array enter (enter with Ctrl-Shift-Enter)

=MAX((A1:A10="SWE4")*B1:B10)

Min:

Array enter (enter with Ctrl-Shift-Enter)

=MIN(IF(A1:A10="SWE4",B1:B10))

HTH,
Bernie
MS Excel MVP


"stevenva" wrote in message
...

How can I return the min, mean, and max values in one column based on a
value (criterion) in another column. For example, how can I return the
mean price (col 2)for all SWE4s (col 1)? Thanks for your guidance!

Item Price
NETAD 3 $8,985.60
SWE 4 $10,368.00
NET 2 $7,142.40
AD A4 $4,867.20
LYST 1 $5,529.60
LYST 2 $5,184.00
SWE 4 $11,059.20
NET 3 $9,216.00
NET 4 $1,209.60
NET 4 $1,152.00
IA 4 $1,324.80
SE 4 $1,198.08
LYST 2 $6,946.56


--
stevenva
------------------------------------------------------------------------
stevenva's Profile:

http://www.excelforum.com/member.php...o&userid=16100
View this thread: http://www.excelforum.com/showthread...hreadid=275496



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
Carriage Return in Excel Rod Behr Excel Discussion (Misc queries) 4 December 14th 04 01:53 PM
search multiple worksheets for an item and return the Wsheets name Chris Excel Worksheet Functions 16 November 7th 04 12:15 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM
How to look up and return multiple values Wendy Excel Worksheet Functions 3 November 3rd 04 04:32 PM
VBA: Return Searched Value Inputed by End-User Mcasteel Excel Worksheet Functions 1 October 28th 04 03:09 PM


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