+ Reply to Thread
Results 1 to 11 of 11

Standard Deviation in a log with a running total

  1. #1
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Standard Deviation in a log with a running total

    2024 QA Log Book 1.5T test SD.xlsx

    I have a QA log book for an MRI machine with 5 different entries. What I am looking to create (add to existing) is a way to know if the numbers we are recording are out of whack. Everything I have found about the standard deviation formula only relates to finding one grand total for an entire table sample or population. I have not seen any for a running table, like this log book. I also want to use conditional formatting so that an entry turns red if it is too far from the SD.

    To make it a little more complicated, I would like to make sure it uses prior months (other tabs) and if possible other years (in other worksheets).

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Standard Deviation in a log with a running total

    To make it a little more complicated, I would like to make sure it uses prior months (other tabs) and if possible other years (in other worksheets).
    I think this sort of task is much easier if you store your data in a good database with all of the data for all months and years in a single place. It is then much easier to calculate average and standard deviation (and other statistics) for all or subsets of the data.

    Would you be allowed to make a good database for this task?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Re: Standard Deviation in a log with a running total

    It looks like we have Microsoft Access. This is one MS product I tried to learn a few decades ago, but I struggled and never really used it. We do have Access on our computers, and I don't mind putting all dates and years in one place. The only issue is how long would it take to open every morning? I once made a macro so that once a value was put in it could not be deleted and it took 5 minutes for the spread sheet to open. I ditched that when that idea pretty quick.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Standard Deviation in a log with a running total

    A spreadsheet can serve as a database just fine, as long as the database is small enough to fit in a single tab. Though a dedicated database application like Access will do better for larger datasets or more complex database queries. A database of daily records for 10 years would have about 3700 records. I would expect a spreadsheet could handle a database that size just fine. Then you can use pivot tables, functionIFS() functions, or function(IF(...)) functions to get summary data from the database.

    My primary work in spreadsheets doesn't involve database type work, so I'm not much help at designing and running them. But let us know if you need some help exploring possibilities, because we have many users here who are very comfortable with designing and using spreadsheet databases.

  5. #5
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Re: Standard Deviation in a log with a running total

    If I can get away with just using the Spread Sheet, I'm fine with that. i just need to figure out how to do this complex formula, then I can apply it to a larger sheet.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Standard Deviation in a log with a running total

    It's not clear to me exactly what you want to calculate for a "running standard deviation." With a database in a single tab, a running standard deviation from the beginning of the database to the current record would be as simple as =STDEV(C$2:C2) entered into an adjacent column to the database and copied down [note the mix of relative and absolute references]. Average over the same period would be similar =AVERAGE(C$2:C2). One standard deviation below average is found by subtracting the standard deviation from the average. One standard deviation above is found by adding. From there, it's a relatively simple IF() test to see if the value in column C of a given record is outside of average+/-1*stdev.

    Would something like that work for you?

  7. #7
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Re: Standard Deviation in a log with a running total

    Let me test that and I will let you know.

  8. #8
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Re: Standard Deviation in a log with a running total

    That gave me a #DIV/0! so I need to figure out the proper use of that first.

    Second, as we enter a new number, would it automatically update?
    Would it skip no value cells (weekends)?

  9. #9
    Registered User
    Join Date
    03-20-2024
    Location
    FL
    MS-Off Ver
    365
    Posts
    11

    Re: Standard Deviation in a log with a running total

    I see now that the first one gave me the #DIV/0!, but the rest game me a value. So that's looking good. Now what about the non-value cells?

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Standard Deviation in a log with a running total

    As explained in the help files (stdev.p help file for example https://support.microsoft.com/en-us/...7-4f4e7462f285 ), Excel's average and standard deviation functions ignore empty cells or cells with non-numeric data.

    Automatic updating -- depends on how you set it up. If you set it up right, it will automatically update. The usual answer here is to use a "structured table." I never use them, so I don't know how they work, and I'm not sure how well it works when you have these kinds of mixed absolute/relative reference situations. If it works correctly, a structured table is the easiest way to have the table with its formulas extend as you append data to the database.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Standard Deviation in a log with a running total

    ARRAY formulas are working.
    SD
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    AVERAGE
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Automatically adds rows when data added.
    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.

    If it is ok, what is the max deviation to be for CF.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. [SOLVED] Standard deviation if
    By bobbinblue in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2016, 06:57 AM
  2. Standard deviation of mean every nth row
    By grayham24 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-24-2016, 02:53 AM
  3. Standard deviation
    By mrgson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2015, 05:09 AM
  4. Excel 2007 : standard deviation
    By Jerseynjphillypa in forum Excel General
    Replies: 6
    Last Post: 06-15-2012, 12:21 PM
  5. Replies: 0
    Last Post: 08-31-2011, 06:26 AM
  6. Standard Deviation help
    By paddyb270 in forum Excel General
    Replies: 1
    Last Post: 10-30-2005, 07:05 PM
  7. standard deviation
    By Chris in forum Excel General
    Replies: 1
    Last Post: 10-13-2005, 12:05 AM

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