Computer Engineers

 
Home | Computer engineering other top | Fiber / Wireless / Copper Tran | Programming language engineeri | Semiconductor engineering
  Position:Home>Computer engineering other top>Article Content
Excel code or macro to interpolate between data points
Source:Internet Author:Unknow Pubdate:2010-03-01  
stadamack (Mechanical) 3 Nov 09 15:35

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.  

stadamack (Mechanical) 3 Nov 09 16:22
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.  
  • http://files.engineering.com/getfile.aspx?folder=1ea07915-637d-4f60-a1fd-90
字串2

IRstuff (Aerospace) 3 Nov 09 16:40
Wny not use Excel's regression tools? TTFN

FAQ731-376: Eng-Tips.com Forum Policies

stadamack (Mechanical) 3 Nov 09 17:15
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.

IRstuff (Aerospace) 3 Nov 09 17:45
linear interpolation only requires two points, so what's the problem? TTFN

FAQ731-376: Eng-Tips.com Forum Policies

stadamack (Mechanical) 4 Nov 09 13:53
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: 字串4
- 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.  

macgyvers2000 (Electrical) 4 Nov 09 14:07
This question is more appropriate to Tek-tips.com and their Excel forums.    Dan - Owner
http://www.Hi-TecDesigns.com


(Click:
Previous:USB to PS/2 converter with splitter function   Next:Can anyone suggest a 3.7v high capacity battery?
[Add TO Favorites] [TOP] [PRINT] [CLOCE WINDOWS]  
  Hot Article
·Server MTBF
·how to crack a protocol???
·find electronic visio stencil
·How do you extract data from a
·MII to RMII vhdl code?
·Installing Catia on a SunBlade
·Difference ISO8583-87 & IS
·RJ45 port tester
·XP 32 bit on AMD Turion 64x2 -
·idf curve/rainfall data
·Computer hibernation with hard
·French drain for a spring, but
  Related Articles
·Can anyone suggest a 3.7v high
·Wifi Booster
·Efficient Data back-ups
·Add separate keyboard and mous
·Password manager not working i
·Privoxy block
·Agile development and embedded
·Ready to try Linux --- Need ad
·Make a List in Word into a vid
·Freelance: Programming
·Intriguing ground structure
·pH Control
Cheap LouisVuitton Bags Civil / Environmental Engineers Structural Engineers Aeronautic Engineers Automotive Engineers Chemical Engineers Geotechnical Engineers Industrial / Manufacturing Engineers Materials Engineers Computer Engineers Agricultural Engineers Mechanical Engineers Petroleum Engineers Bioengineers Military Engineers