+ Reply to Thread
Results 1 to 4 of 4

Calculating Trends

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    Singapore
    Posts
    2

    Calculating Trends

    Hi

    I have a problem. I have 10 different grades (1-10) that can be given to my students. Each person is given a 3 grades and I need to find the trend. For eg, a student given 1, 2, 3 I need excel to return grade 2. I have different combinations and is there a way for excel to do so?

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Calculating Trends

    OrangePie,

    There are general formulas for that result in a linear function y=mX+b where m is the slope and b id the offset.

    I've added a picture for the formula's to find m and b.

    I've made names, 3 values in A1:A3:
    n=COUNTA(Sheet1!$A$1:$A$3)
    sumD=SUM(Sheet1!$A$1:$A$3)
    sumi=SUMPRODUCT(ROW(Sheet1!$A$1:$A$3))
    sumi_2=SUMPRODUCT(ROW(Sheet1!$A$1:$A$3))^2
    sumi2=SUMPRODUCT(ROW(Sheet1!$A$1:$A$3),ROW(Sheet1!$A$1:$A$3))
    sumiD=SUMPRODUCT(ROW(Sheet1!$A$1:$A$3),Sheet1!$A$1:$A$3)

    m=(n*sumiD-sumi*sumD)/(n*sumi2-sumi_2)
    b=(sumD*sumi2-sumi*sumiD)/(n*sumi2-sumi_2)

    Hope this helps

    The simpe way is making a graph and let excel print the trend in the graph. Add Trendline, Options
    Attached Images Attached Images
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    09-24-2008
    Location
    Singapore
    Posts
    2
    Thanks rwgrietveld!!! Not too sure if I understand the formulas completed. Tried it out and realised that mine is not exactly a linear relationship. For example, if the student gets grade 1,3,3 the return should be 2. Another example, if the student gets 4, 2, 3 the return should be 3. I guess my question really is if there is a set of criteria to judge the 3 grades, how then can it be computed into excel. Tried nested if, but that one only allows 7 combinations.... any advice? Thanks!

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Calculating Trends

    OrangePie,

    I think you are wrong about this:
    if the student gets 4, 2, 3 the return should be 3.
    This is a negative trend. I've added the sheet to show you. These "trend" formula's are universal. You are calculating the average. Please try some other values in my sheet.
    Attached Files Attached Files

+ 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. Copied Data Not Calculating
    By EddieMaher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2008, 08:56 PM
  2. Calculating the amount of consecutive values of a specific type
    By Vlad111 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2008, 11:56 PM
  3. calculating delay question
    By lilsnoop in forum Excel General
    Replies: 1
    Last Post: 12-22-2007, 02:38 AM
  4. Calculating Taxable Social Security Benefits
    By sudburydave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2007, 08:17 AM
  5. Replies: 7
    Last Post: 08-15-2007, 08:33 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