+ Reply to Thread
Results 1 to 6 of 6

Formula to calculate Std Dev based on column value

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    M, Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    45

    Formula to calculate Std Dev based on column value

    Please see the attached file, which is an excerpt of my data. I would like to calculate the standard deviation for each Item number (each item has 10 scores). However, because my data set contains MANY rows, I do not wish to enter the STDEV formula manually for each Item, as is done in the attached file. Is there a simple formula you could suggest which would automatically fill in STDEV for each Item?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: Formula to calculate Std Dev based on column value

    Try ..

    =STDEV(IF($A$3:$A$47=D3,$B$3:$B$47)) where D3 contains Item number: D3=1, D4=2, D5=3 so put in E3 and copy down

    Enter with Ctrl+Shift+Enter

  3. #3
    Registered User
    Join Date
    03-22-2012
    Location
    M, Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Formula to calculate Std Dev based on column value

    Thank you, John. However, the formula results in a divide-by-zero error, which doesn't make sense to me since it doesn't involve division.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: Formula to calculate Std Dev based on column value

    See attached. Problem is your item numbers which appear to be text. Change to numbers. I forgot to mention this in my earlier post.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: Formula to calculate Std Dev based on column value

    Just to be clear on the last point: I put numbers 1 to 3 in D3 to D5 and they did not match with your item numbers which were text. So I changed the item data to number format. If the item data is numeric just ensure that the format is the same as that in "D" cells if you use the same approach.

  6. #6
    Registered User
    Join Date
    03-22-2012
    Location
    M, Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Formula to calculate Std Dev based on column value

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need a formula to calculate sum based on weekchange in a column
    By Northstjarna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2013, 05:14 PM
  2. Replies: 5
    Last Post: 07-06-2013, 08:21 PM
  3. Calculate standard deviation for column based on column heading
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 04:25 PM
  4. Replies: 4
    Last Post: 10-15-2012, 07:38 AM
  5. [SOLVED] Formula to calculate sum of column range based on presence of value in another column
    By abreet in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2012, 10:37 PM
  6. formula to calculate a column based on dates in a different colum.
    By Pam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2005, 03:06 PM
  7. Replies: 0
    Last Post: 02-04-2005, 03:58 PM
  8. Formula to calculate a total in one range based on dates from another column
    By CarolineD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2005, 04:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1