Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dan Gauthier
 
Posts: n/a
Default Please add an INTERPOLATE function. For vector or array data.

Please add this function which may be used either for a vector set of data or
for a 2 dimensional array of data.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Bernard Liengme wrote...
You have SLOPE, INTERCEPT and LINEST, making an interpolation is rather easy
from there.

....

LINEST would be gross overkill. Besides, FORECAST and TREND would be
far easier than any of these. The problem is that using it to
interpolate in a table (TBL) for a value (v) involves expressions like

TREND(OFFSET(TBL,MATCH(v,INDEX(TBL,0,XvalCol)),Yva lCol-1,2,1),
OFFSET(TBL,MATCH(v,INDEX(TBL,0,XvalCol)),XvalCol-1,2,1),v)

You may like these, but they are a bit long. When they're general like
this, they eat 3 levels of nested function calls. A simpler approach
would be handy, but I suspect we won't see it in Excel until a few
months after Hell organizes an Ice Hockey league.

  #4   Report Post  
MrShorty
 
Posts: n/a
Default


I would agree with the OP on this one. LINEST etc. are curve fitting
functions, not interpolating functions. Sometimes when you have a
table of data, it is easier/preferable to approximate the function as a
series of straight lines connecting the data points (similar to what a
line chart/XY chart does) rather than attempt to fit the data to a
curve.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=399062

  #5   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Which you can do with LINEST etc. or more directly with TREND or
FORECAST by including just the relevant surrounding points (instead of
the entire data set) for a given interpolation.

Jerry

MrShorty wrote:

I would agree with the OP on this one. LINEST etc. are curve fitting
functions, not interpolating functions. Sometimes when you have a
table of data, it is easier/preferable to approximate the function as a
series of straight lines connecting the data points (similar to what a
line chart/XY chart does) rather than attempt to fit the data to a
curve.




  #6   Report Post  
MrShorty
 
Posts: n/a
Default


Correct you can use the built in functions for interpolation easily
enough, once you've located the interval containing the desired value.
And if you have a small dataset and/or only need to perform the
interpolation a few time, manually searching through the dataset for
the interval wouldn't be a problem. On the other hand, if you have a
large dataset or need to perform several interpolations, manually
searching for the interval and adjusting formulas accordingly gets
tedious. As Harlan points out, composing a formula to search for the
interval then interpolate is not a "pretty" formula. I wanted an
interpolate function when I converted to Excel from Quattro Pro (which
had a built in interpolation function), so I wrote a UDF, but it would
be nice if Microsoft would include it as a built in function.

Jerry W. Lewis Wrote:
Which you can do with LINEST etc. or more directly with TREND or
FORECAST by including just the relevant surrounding points (instead of
the entire data set) for a given interpolation.

Jerry

MrShorty wrote:

I would agree with the OP on this one. LINEST etc. are curve

fitting
functions, not interpolating functions. Sometimes when you have a
table of data, it is easier/preferable to approximate the function as

a
series of straight lines connecting the data points (similar to what

a
line chart/XY chart does) rather than attempt to fit the data to a
curve.



--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=399062

  #7   Report Post  
Tushar Mehta
 
Posts: n/a
Default

As nice as it would be for MS to meet every need for every function
from every customer, XL is flexible enough to allow one to add new
capabilities.

For a few options for piecewise linear interpolation, see a discussion
"Graph look up" in .excel.charting. You can search the google.com
archives of the XL newsgroups for a post by Dave Braden for code based
on cubic splines and visit www.xlrotor.com for code based on Bezier
curves.


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , =?Utf-
8?B?RGFuIEdhdXRoaWVy?= <Dan says...
Please add this function which may be used either for a vector set of data or
for a 2 dimensional array of data.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

  #8   Report Post  
Harlan Grove
 
Posts: n/a
Default

Tushar Mehta wrote...
As nice as it would be for MS to meet every need for every function
from every customer, XL is flexible enough to allow one to add new
capabilities.


The logical implications of this argument are that because Excel is
extensible in terms of functions, Microsoft need never add another.

As for meeting needs, when was the last time anyone who uses Excel
regularly needed any of the 3 Bessel functions? And for those who
do need Bessel functions, it would have been nice if Microsoft had
allowed for fractional parameters.

Linear interpolation is a commonly needed bit of functionality. Not,
it'd seem, as frequently requested as summing cells by color or font
attributes, but much more common than finding solutions to
cylindrical harmonics.

It'd be good for Microsoft to add some built-in functions to Excel.
But, if you're going to be an absolutist about this (denying the need
or usefullness of any more functions), perhaps we could discuss new
capabilities that would make Excel *MORE* *CONSISTENT*.

Top of my list would be rewriting the formula parser (which probably
hasn't been touched since Excel 4) to accept nested function calls
more than 7 levels deep. As I've pointed out several times, Excel has
no trouble calculating such formulas, but it won't allow them to be
created or edited. How can they be? They can be created by other,
non-Microsoft spreadsheets, saved in .XLS format (so the file format
in addition to the recalc engine isn't the problem here), and opened
in Excel. Would that be a useful new feature?

For a few options for piecewise linear interpolation, see a discussion
"Graph look up" in .excel.charting. You can search the google.com
archives of the XL newsgroups for a post by Dave Braden for code based
on cubic splines and visit www.xlrotor.com for code based on Bezier
curves.


Of course there are ways to do it. It's just that they're bulky and
nonintuitive. There are ways to calculate depreciation using only the
arithmetic functions and lots of cells for intermediate calculations.
Why does Excel include DB, DDB, SLN, SYD and VDB functions?

Your argument is flawed.

  #9   Report Post  
tskoglund
 
Posts: n/a
Default

My internal reaction to Tushar's smug answer on this HUGE oversight with
Excel is much closer to indignation than Harlan's answer. This function
would be useful to businessmen, engineers and scientists across the spectrum.

Shame on the Excel managers for screwing up on this one. Apparently they've
lost touch. Too bad the competition isn't stronger to shake them up a little
bit.

"Tushar Mehta" wrote:

As nice as it would be for MS to meet every need for every function
from every customer, XL is flexible enough to allow one to add new
capabilities.

For a few options for piecewise linear interpolation, see a discussion
"Graph look up" in .excel.charting. You can search the google.com
archives of the XL newsgroups for a post by Dave Braden for code based
on cubic splines and visit www.xlrotor.com for code based on Bezier
curves.


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , =?Utf-
8?B?RGFuIEdhdXRoaWVy?= <Dan says...
Please add this function which may be used either for a vector set of data or
for a 2 dimensional array of data.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions


  #10   Report Post  
Harlan Grove
 
Posts: n/a
Default

tskoglund wrote...
....
Shame on the Excel managers for screwing up on this one. Apparently they've
lost touch. Too bad the competition isn't stronger to shake them up a little
bit.

....

Never, ever accuse Microsoft of losing touch until you see their
revenues
decline quarter-to-quarter for a full year. Microsoft does what it
needs to do
AND NO MORE in order to keep the revenues flowing. The history of the
last two
Office 'upgrades', at least from the Excel perspective, is that they
don't
need to do much to get companies and individuals to upgrade. It'd be
irrational for them to do more. The irrational parties are anyone who
upgraded
from Office 2000.

You're absolutely right about the benefits of competition. The only
good news
here is that Microsoft did such a good job with its older versions
compared to
the dearth of new/interesting features in the the two latest versions
that
they do face competition . . . from their own older versions.

You want to make Microsoft actually WORK for their money? Don't upgrade
to
Office 2006, especially if it requires an OS upgrade to do so.



  #11   Report Post  
tskoglund
 
Posts: n/a
Default

I wish it were that simple. But Office is a virtual monopoly, and the
legions of employess that work for organizations that standardize on it have
no vote.

I suppose the executives are "in touch" if the company remains profitable,
but the out-of-touchTushar Mehta's of Microsoft are giving me tremendous
encouragement to support and buy alternative products at least for home use.
How hard can it be to add an INTERPOLATE function? 2 hours of programming
time maybe?

At any rate, thanks for your humbling rebuttal to Tushar.

"Harlan Grove" wrote:

tskoglund wrote...
....
Shame on the Excel managers for screwing up on this one. Apparently they've
lost touch. Too bad the competition isn't stronger to shake them up a little
bit.

....

Never, ever accuse Microsoft of losing touch until you see their
revenues
decline quarter-to-quarter for a full year. Microsoft does what it
needs to do
AND NO MORE in order to keep the revenues flowing. The history of the
last two
Office 'upgrades', at least from the Excel perspective, is that they
don't
need to do much to get companies and individuals to upgrade. It'd be
irrational for them to do more. The irrational parties are anyone who
upgraded
from Office 2000.

You're absolutely right about the benefits of competition. The only
good news
here is that Microsoft did such a good job with its older versions
compared to
the dearth of new/interesting features in the the two latest versions
that
they do face competition . . . from their own older versions.

You want to make Microsoft actually WORK for their money? Don't upgrade
to
Office 2006, especially if it requires an OS upgrade to do so.


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Please add an INTERPOLATE function. For vector or array data.

All politics and tirades about Microsoft's practices and market share aside:
As an engineer I frequently use tabular data from various published
references. Now I could develop a UDF for the original differential equation
from which the tabular data was created. (Then why did I buy the book?) Or
I could use SLOPE, LINEST and so forth as discussed in some of the notes
above in this thread. (But working out those nested formulae would take ten
times as long as doing it by hand on a piece of scratch paper.) Or I could
(and did) write my own UDF to do a simple linear interpolation between two
data points, something like =MYINTERPOLATE(Y-Data,X-Data,X-Point). But by
far the easiest way for me would be if it already existed as a standard
function available with Excel. I must confess, I really like Excel; it has
tremendous capabilities and has taken me way beyond where I could go, back in
the bad old days of sliderules. And I think the guys that built in all its
features and functions have done an amazing job. They thought of solutions
to problems I haven't even imagined yet. It just surprises me that not only
did they miss this obvious winner, but seem to want to argue about how it is
not worth doing. We seem to be forgetting that the fundamental purpose of
this tremendous spreadsheet program is to provide an EXCEL-lent tool for
scientists, engineers, business managers and the like to use in the execution
of their business. Making widgets or whatever. We engineers and business
managers do not simply exist to provide a market for a software company. A
lesson I've learned from over 25 years of marriage: RECOGNIZE THE CORRECT
ANSWER WHEN TOLD! Excel should have an easy-to-use interpolate function.

And while they're at it, how about making it easy to categorize your own
UDFs and have them available from a master file of some sort? It would be
great to be able to cluster the many complex UDFs I've written into groupings
like "Steam Formulae", "Combustion Formulae", and so on without having to go
through the relatively painful process it now requires to accomplish such a
goal. And be able to call them up even if the original worksheet where I
created them is not currently open. Can it be done now? Yes. Is it easy?
No. Please . . . make it easy.

Keep up the good work. Make it better.

Mark

"tskoglund" wrote:

I wish it were that simple. But Office is a virtual monopoly, and the
legions of employess that work for organizations that standardize on it have
no vote.

I suppose the executives are "in touch" if the company remains profitable,
but the out-of-touchTushar Mehta's of Microsoft are giving me tremendous
encouragement to support and buy alternative products at least for home use.
How hard can it be to add an INTERPOLATE function? 2 hours of programming
time maybe?

At any rate, thanks for your humbling rebuttal to Tushar.

"Harlan Grove" wrote:

tskoglund wrote...
....
Shame on the Excel managers for screwing up on this one. Apparently they've
lost touch. Too bad the competition isn't stronger to shake them up a little
bit.

....

Never, ever accuse Microsoft of losing touch until you see their
revenues
decline quarter-to-quarter for a full year. Microsoft does what it
needs to do
AND NO MORE in order to keep the revenues flowing. The history of the
last two
Office 'upgrades', at least from the Excel perspective, is that they
don't
need to do much to get companies and individuals to upgrade. It'd be
irrational for them to do more. The irrational parties are anyone who
upgraded
from Office 2000.

You're absolutely right about the benefits of competition. The only
good news
here is that Microsoft did such a good job with its older versions
compared to
the dearth of new/interesting features in the the two latest versions
that
they do face competition . . . from their own older versions.

You want to make Microsoft actually WORK for their money? Don't upgrade
to
Office 2006, especially if it requires an OS upgrade to do so.


  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Please add an INTERPOLATE function. For vector or array data.

Hi Yes, FAO the Excel development team:

Excel would greatly benefit from an interpolate function with inputs similar
to the trend function. Often I have known X and Y values, and a new set of X
values for which I would like to interpolate corresponding Y values. The
original Y values are rarely linear and form all sorts of complex lines when
graphed. Trend therefore isn't suitable for this. Currently, I have to use
a substantial and impractical formula to manually linearly interpolate new Y
values, and when this is applied to many y-value sets, it quickly becomes
impractically cumbersome to use Excel. An in-built interpolate function
would fix this. Other software, I am told, does support this feature and its
ommission in Excel is all too apparent.

Thanks.

"Dan Gauthier" wrote:

Please add this function which may be used either for a vector set of data or
for a 2 dimensional array of data.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Please add an INTERPOLATE function. For vector or array data.

Have you looked at the FORECAST function ?
--
David Biddulph

"L8Chris" wrote in message
...
Hi Yes, FAO the Excel development team:

Excel would greatly benefit from an interpolate function with inputs
similar
to the trend function. Often I have known X and Y values, and a new set
of X
values for which I would like to interpolate corresponding Y values. The
original Y values are rarely linear and form all sorts of complex lines
when
graphed. Trend therefore isn't suitable for this. Currently, I have to
use
a substantial and impractical formula to manually linearly interpolate new
Y
values, and when this is applied to many y-value sets, it quickly becomes
impractically cumbersome to use Excel. An in-built interpolate function
would fix this. Other software, I am told, does support this feature and
its
ommission in Excel is all too apparent.

Thanks.

"Dan Gauthier" wrote:

Please add this function which may be used either for a vector set of
data or
for a 2 dimensional array of data.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the
"I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and
then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"