×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
To Your Posts
• Keyword Search
• One-Click Access To Your
Favorite Forums
• Automated Signatures
On Your Posts
• Best Of All, It's Free!

*Eng-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.

Students Click Here

Excel code or macro to interpolate between data points

 Forum Search FAQs Links MVPs

Excel code or macro to interpolate between data points

(OP)

Electricity meter readings are recorded every 7 days and recorded in an excel spreadsheet. Date is recorded in Col 1. Corresponding meter reading is recorded in Col 2. From the data entered I would like to automatically calculate the consumption for each month. The code / macro should interpolate to determine meter readings at the beginning and end of each month - these can then be subtracted to determine consumption during any month.
Replies continue below

RE: Excel code or macro to interpolate between data points

(OP)
Electricity meter readings are recorded every 7 days and recorded in an excel spreadsheet. Date is recorded in Col 1. Corresponding meter reading is recorded in Col 2. From the data entered I would like to automatically calculate the consumption for each month. The code / macro should interpolate to determine meter readings at the beginning and end of each month - these can then be subtracted to determine consumption during any month.

RE: Excel code or macro to interpolate between data points

Wny not use Excel's regression tools?

RE: Excel code or macro to interpolate between data points

(OP)
maybe there is a function in the regression tools to do this? have examined the trend function but this fits a line using least squares rather than linear interpolation.

RE: Excel code or macro to interpolate between data points

linear interpolation only requires two points, so what's the problem?

RE: Excel code or macro to interpolate between data points

(OP)
linear interpolation is no problem. am trying to set up a spreadsheet to automate the process. data is input in 2 columns. Col 1 date. Col 2 meter readings. Is there a function that can take the following inputs:
- a value in the range in Col 1
- an array containing Col 1 + Col 2
and return a corresponding value from col 2.
A function that conducts linear interpolation as required.

RE: Excel code or macro to interpolate between data points

This question is more appropriate to Tek-tips.com and their Excel forums.

Dan - Owner
http://www.Hi-TecDesigns.com

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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login

Close Box

Join Eng-Tips® Today!

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

Here's Why Members Love Eng-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!

Already a member? Close this window and log in.