+ Reply to Thread
Results 1 to 4 of 4

How can I generate an array of numbers?

  1. #1
    Registered User
    Join Date
    02-18-2016
    Location
    usa
    MS-Off Ver
    2013
    Posts
    24

    How can I generate an array of numbers?

    I am trying to predict possible future exam/test scores based on past data.

    The 2 items I would like to use as known variables are (1) past test scores and (2) trending direction of the past 3 scores.

    So for example: if Sally has her past 10 scores as: 70, 75, 75, 75, 80, 70, 60, 70, 80, 85 ...... what would be her next 3 scores?
    I would like to note that her last 3 scores are trending up, which I would like to factor in as a variable to predict future scores, as well as using all those past 10 scores (maybe average of them).


    When I look up functions such as TREND (though I didn't try to use this myself), it looks as though it returns one specific number (for example in my case it may say the scores will be 81, 82 and 83 for her next 3 test scores). Is it possible, however, to return multiple arrays of test scores rather than everything averaged to return one number? I would rather see maybe the top 5 or 10 likely predicted scores for her 11th test.

    Hopefully I am explaining this correctly. Is there a way I can calculate and predict the future like this?
    Sally.xlsx

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How can I generate an array of numbers?

    There is a standard formula for a straight line between a list of data points.

    You should be using that.

    https://support.office.com/en-us/art...a-fa7abf772b6d
    Last edited by mehmetcik; 04-09-2016 at 03:00 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    02-18-2016
    Location
    usa
    MS-Off Ver
    2013
    Posts
    24

    Re: How can I generate an array of numbers?

    Quote Originally Posted by mehmetcik View Post
    There is a standard formula for a straight line between a list of data points.

    You should be using that.

    https://support.office.com/en-us/art...a-fa7abf772b6d
    Thank you, but will this not offer just 1 predicted test score for future tests? I was hoping to gather the array of numbers as potential scores, rather than the average of those array of numbers used in making a straight line.
    is that possible?
    Last edited by tommade; 04-09-2016 at 07:53 PM.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How can I generate an array of numbers?

    Ok I have created a sample for you

    Right click on the "Comments" sheet name at the bottom of excel and select view code to edit the code

    Please Login or Register  to view this content.

    A2 and B2 contain an array formula that calculates the Gradiant and the Y intercept.

    I have put a formula in cell E1 which is a predicted result based on the results in C1 and D1.

    Type an actual result in cell E1 and see what happens.
    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. [SOLVED] Macro to generate all numbers between two numbers
    By XL2008 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2015, 01:56 PM
  2. Is there any script that I generate 6 numbers of these numbers from the list?
    By dragon66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2014, 01:22 PM
  3. Replies: 1
    Last Post: 10-16-2013, 02:46 PM
  4. Generate numbers between two numbers without duplicates?
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-16-2012, 05:09 AM
  5. Replies: 4
    Last Post: 10-11-2010, 05:13 AM
  6. Random numbers to generate amount between two numbers
    By maverickbv80 in forum Excel General
    Replies: 2
    Last Post: 09-08-2010, 11:21 AM
  7. [SOLVED] generate all subsets (2^n array)
    By Robert Reid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-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