Results 1 to 4 of 4
  1. #1
    tombo10 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    4

    Standard Deviation


    I'm trying to get an Access report to calculate the standard deviation of a set of numbers. For this example the numbers are 63.50, 63.51, 63.51, 63.48, 63.49, 63.49, 63.49, 63.49, 63.49. When I do this in Excel the Stdev is 0.010138. But the Access report calculates it as 0.005744. My end goal is to calculate Cp & Cpk on the report but these false Access numbers makes it impossible. Any help on why Access calculates Stdev differently than Excel?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    How are you calculating your Standard Deviation in Access? Are you using the Group By query as explained here:

    http://www.blueclaw-db.com/accessque...e_function.htm

  3. #3
    tombo10 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    4
    Sorry, obviously my access skills are weak but I'll try to answer as best I can. I created a query to sort out the data I want but did no calculations in the query. Using the report wizard I set it up to sort by operation and did a summary of "inspection value" data for each operation. In the control source "expression builder" I created this: =StDev([INSP_VAL]). I did the same thing for sum, avg, min & max and they all worked fine except stdev. I realize now this might be more than I can accomplish without some programming training.

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    When I create a group by query and use the StDev I get the following result 1.01379376317721E-02. This appears to match the Excel number you received. Here is the SQL statement I used.

    Code:
    SELECT StDev(Table4.Field1) AS StDevOfField1
    FROM Table4;
    I suggest you do all calculations in your query and then make the query your record source for your report.
    Attached Thumbnails Attached Thumbnails Capture.PNG  

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 05-07-2015, 09:50 PM
  2. st deviation function on array
    By registoni in forum Programming
    Replies: 2
    Last Post: 09-09-2013, 04:00 AM
  3. Standard number format?
    By asmores in forum Forms
    Replies: 2
    Last Post: 03-22-2013, 08:31 AM
  4. Replies: 2
    Last Post: 03-27-2012, 03:53 PM
  5. Standard format for Yes/No fields
    By coolpal9 in forum Forms
    Replies: 1
    Last Post: 01-20-2012, 04:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums