Calculate standard deviation of same text values between cells in two columns

smide

Board Regular
Joined
Dec 20, 2015
Messages
162
Office Version
  1. 2016
Platform
  1. Windows
Hello.


In columns B and C (B2:C600) I have a product list (about 25 different products) and in columns E and F their prices.
When the product is in Column B his price is in Column E (same row) and when the product is in Column C his price is in Column F.


In column H (from cell H2 and downwards) I have list off ALL potential products.


I need a formula to find standard deviation (STDEV) of all prices for each product and put those results in Column I.


example.

ABCDEFGHI
1Price PriceProduct list
2applesugar1210apple2.5
3orangemilk821sugar...
4flourcookies163orange...
5cookiesapple189milk...
6cookiesmilk122flour...
7appleorange1511cookies...
8sugarflour49
9flourapple1813
10............

<tbody>
</tbody>


cell I2 is STDEV for all apple prices: = stdev(E2,F5,E7,F13)=stdev(12,9,15,13) = 2.5
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Excel 2010
ABCDEFG
1PricePriceProduct list
2applesugar1210apple2.5
3orangemilk821sugar4.242641
4flourcookies163orange2.12132
5cookiesapple189milk0.707107
6cookiesmilk122flour4.725816
7appleorange1511cookies9.291573
8sugarflour49
9flourapple1813
Sheet14
Cell Formulas
RangeFormula
G2{=STDEV(IF($A$2:$B$9=F2,OFFSET($A$2:$B$9,0,2)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,400
Messages
6,119,292
Members
448,885
Latest member
LokiSonic

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top