LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default Standard Deviation and Averages based on criteria

I need to do the standard deviation and averages of some numbers based on some criteria that is in the same row as the number. The criteria can be contained in any one of three designated cells, and if one criteria is met it should include the corresponding number value in the standard deviation and average calculations. The problem is if it meets with two criteria it is adding the value in twice to calculate it.

CRIT1..|..CRIT2..|..CRIT3..|..VAL..|..AVG(RR)..|.. STDEV(RR)
red......|..plastic.|............|...5....|....... ........|0.816496581
blue.....|..plastic.|............|...3
green...|..plastic.|............|...3
green...|..rubber.|............|...3
red......|..rubber..|...........|...4

The formula I am trying is:
=STDEVA(IF(B4:B8="red", E4:E8), IF(C4:C8="rubber", E4:E8))

The real sample standard deviation for what I want is 1 (first, fourth, and fifth items should be used). I have tried many different ways and nothing has worked.

Also, is there a way to exclude the value in the calculation if one of the criteria is a specific thing? Such as, excluding green but including rubber, I would not want the fourth item in the calculation. Thanks for reading this!

Last edited by benzeb666 : December 3rd 13 at 10:18 PM
 
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
Calculating Averages based on criteria Kgov Excel Discussion (Misc queries) 6 August 28th 09 02:41 PM
Standard Deviation w/ multiple criteria... MeatLightning Excel Discussion (Misc queries) 2 January 10th 09 01:01 AM
standard deviation [email protected] Charts and Charting in Excel 3 April 16th 08 01:04 AM
Standard Deviation Stan Banner Excel Worksheet Functions 1 March 11th 06 09:11 PM
Standard Deviation Carlos Excel Worksheet Functions 10 January 2nd 06 09:17 AM


All times are GMT +1. The time now is 12:02 AM.

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"