+ Reply to Thread
Results 1 to 8 of 8

How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2016
    Posts
    8

    How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Hello

    I am trying to achieve the computation of descriptive mesures in one cell formulas without relying on the computation of other mesures in separate cells, for exmple, the mean to compute the variance.

    For raw data it has been very easy, bot not quite for frequencies data.

    Perhaps my problem can be solved if i can multiply a range by a scalar within the formula.

    Anyone can help?

    Regards

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Hi,

    An example with expected result would be useful, even more useful if provided within an actual workbook.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    11-16-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2016
    Posts
    8

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Hello

    Please find attached a Excel file that I would like to complete for MAD as done for the variance and standard deviation

    Thank you
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Thanks, so what precisely are your expected results in here?

    Regards

  5. #5
    Registered User
    Join Date
    11-16-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2016
    Posts
    8

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    The expected result is 1.20 for MAD with a formula like the following in which the arguments are only the Xi and Fi ranges:

    s^2 = 2.8625 =SUMPRODUCT((C5:C9-SUMPRODUCT(D5:D9,C5:C9)/SUM(D5:D9))^2,D5:D9)/(SUM(D5:D9)-1)

    This formula I am sending now is different from the one contained in the spreadsheet sent obtained by substituting

    $E$11

    by

    SUMPRODUCT(D5:D9,C5:C9)/SUM(D5:D9)

    in order to eliminate the reference to the sample mean that is now calculated from the data set.


    Regards

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Possibly this can be abbreviated further:

    =SUMPRODUCT(D5:D9,ABS(C5:C9-SUMPRODUCT(C5:C9,D5:D9)/SUM(D5:D9)))/SUM(D5:D9)

    Regards

  7. #7
    Registered User
    Join Date
    11-16-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    2016
    Posts
    8

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    Hello

    It works perfectly.

    Thank yo very much

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate in a one cell formula MAD = SUM(ABS(Fi Xi - Fi AVERAGE(Xi))

    You're welcome!

    Regards

+ 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. Formula to Calculate Average to nth to nth row
    By ken_trenholm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2014, 07:18 AM
  2. Need formula to calculate average for every 30,60,90,120...etc.
    By Murphyslaw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-15-2013, 10:43 AM
  3. formula to calculate average + 10%
    By dylans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2011, 03:45 AM
  4. Help with formula to calculate average from other
    By Staberinde in forum Excel General
    Replies: 2
    Last Post: 02-09-2010, 02:51 PM
  5. Formula to calculate average of every other cell
    By froffel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-05-2009, 02:39 PM
  6. Formula to calculate average of every other cell
    By froffel in forum Excel General
    Replies: 1
    Last Post: 10-29-2009, 11:58 AM
  7. [SOLVED] calculate Average Formula
    By sross002 in forum Excel General
    Replies: 3
    Last Post: 02-24-2006, 01:10 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