+ Reply to Thread
Results 1 to 2 of 2

Using Var.S function to include the count of a value

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    84

    Using Var.S function to include the count of a value

    Hello,

    I would like to use the var.s function to calculate the variance between a set of numbers that factors in the COUNT of that number too.

    Below is an example of the issue I am trying to solve. There is a two column table: one with the count, the other with the value. I want the var.s function to be able to include the count of the value; i have simulated how this would be by duplicating the numbers based on the count.

    Var problem.jpg

    It's the second var.s output that i'd like to achieve.

    Apologies in advance if there is a super easy way to do this - i just can't see it!

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

    Re: Using Var.S function to include the count of a value

    If you want to use the var.s() function, the way you are doing it in C8 is probably the easiest.

    When I want to calculate a weighted variance like that, I tend to abandon the built in function and go back to the basic formulas for variance -- specifically, this formula for the sum of the squared deviations: http://statistics.about.com/od/Formu...a-Shortcut.htm

    var.s=sum((xi-ave(x))^2)/(n-1) where sum((xi-ave(x))^2)=sum(xi^2)-(sum(xi))^2/n

    One can use the SUMPRODUCT() function to get the summations: http://office.microsoft.com/en-us/ex...in=HP010342656
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. How to count average of selected cells and not include zero?
    By Tilsted in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-06-2014, 09:46 AM
  2. [SOLVED] count cells that include a date
    By steve@stanley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 01:13 PM
  3. [SOLVED] Filtering macro, count number of rows and include count in last column.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 07:17 AM
  4. Count Workday include Saturday
    By TCLehmann in forum Excel General
    Replies: 1
    Last Post: 11-23-2005, 05:30 PM
  5. [SOLVED] COUNT.IF, how to include single cells
    By Anders in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-29-2005, 07:05 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