Interpolation of data on Excel for analysis of Load Displacement

AI Thread Summary
The discussion focuses on creating a program to interpolate y values from a set of x and y data points at specified intervals along the x-axis, specifically for use in Excel. The user has large datasets and seeks a method to automate the interpolation process, as manual calculations would be too time-consuming. Suggestions include using least squares regression to derive a function for y(x) and utilizing Excel VBA for automation. Additionally, a recommended Excel add-in, XNUMBERS, offers built-in interpolation functions, along with a tutorial for further guidance. The conversation emphasizes the need for efficient data handling and analysis in Excel.
leon313
Messages
2
Reaction score
0
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!
 
Engineering news on Phys.org
leon313 said:
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!

Welcome to the PF. I'm not sure I understand your question. What format is the data in? Is it already in Excel in two columns? Or is it in a clear text file in CSV or some other format?

And you want the output of your program to be what? An Excel spreadsheet with an interpolated y data column next to some pre-set x data (regular interval) column?
 
leon313 said:
I don't need any help for the engineering maths I'll be doing after but if I anyone could advise me on how to write a program that would take a set of x and y values and then give me back the y values at certain intervals on the x-axis I would be very grateful. I've got colossal amounts of data that needs sorting before I can use it.

Thanks!

If you have the math worked out then most of the work will be in making the program interface. Is that what you need help with? If so, it sounds more like a programming issue. If so, then what language are you familiar with?

CS
 
Just do a least squares regression on the data set, and get a function for y(x). Then plug in values of x to the function you get and there's your interpolated outputs!
 
What I have is a few different sets of data, all with two columns in. My problem is that to take an average of all the different data sets, I need x values at set intervals, whereas at the minute I may have a y value at x = 0.9 and another at x = 1.1 and need the value at 1.0. This isn't a problem obviously to interpolate by hand but the values are to a few decimal places and to do the whole lot by hand would take quite a while. I'm pretty clueless with how to use Excel VBA to help me with it. So the output needs to be An Excel spreadsheet with an interpolated y data column next to some pre-set x data (regular interval) column as berkeman suggested.

Thanks again.
 
If you are using Windows XP, the link below has an Excel add-in called XNUMBERS that contains built in interpolation functions.

http://digilander.libero.it/foxes/SoftwareDownload.htm

Look for the item at the top of the list called "XNUMBERS 5.6 - Multi Precision Floating Point Computing and Numerical Methods for EXCEL"

There is also an excellent tutorial:

http://digilander.libero.it/foxes/Documents.htm

Look for the item called “Numeric calculus in Excel” Xnumbers Tutorial vol.1,Oct. 2007 by Foxes Team.
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
Thread 'How can I find the cleanout for my building drain?'
I am a long distance truck driver, but I recently completed a plumbing program with Stratford Career Institute. In the chapter of my textbook Repairing DWV Systems, the author says that if there is a clog in the building drain, one can clear out the clog by using a snake augur or maybe some other type of tool into the cleanout for the building drain. The author said that the cleanout for the building drain is usually near the stack. I live in a duplex townhouse. Just out of curiosity, I...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...
Back
Top