×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# how to calculate a linear trend

## how to calculate a linear trend

(OP)
Can someone point out how I can take a known set of x-values and a known set of y-values and return a linear trend? Excel provides a TREND() function but I need to do this on a server-side object, preferably in VB.

### RE: how to calculate a linear trend

Go through each point and find the equation for the line that connects them.
Then you could simply average them out.

### RE: how to calculate a linear trend

(OP)
hmm - I'm not sure that's what I'm looking for. The function needs to suggest a future trend based on the known values from the past.

### RE: how to calculate a linear trend

Most books on Statistics will show how to calculate the line equation for linear trend (or regression) in the form 'y = mx + c'. Extrapolation of that data just needs you to supply the appropriate x value to the equation.

________________________________________________________________

'If we're supposed to work in Hex, why have we only got A fingers?'

### RE: how to calculate a linear trend

(OP)
Thank you johnwm - I'll start from there.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!