Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Accessing individual elements of an array returned by a function
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="tkpmep, post: 6306072"] If I call an Excel function (e.g. Linest) that returns an array (in the case of Linest, the slope and the intercept), how can I access one particular element of the array that is returned? If I select two cells, type =Linest(a1:a10,b1:b10) in one and then hit Ctl-Shift-Enter to enter an array formula, both the slope and the intercept are returned, one in each cell. But what if I want just the slope or just the intercept? I tried entering =Linest(a1:a10,b1:b10) (1) in a single cell but got only an error. What am I doing wrong? I'm aware that in this particular case, I could use the Slope() and Intercept() functions separately to get what I want, but there has to be a general solution for any function that returns an array. Sincerely Thomas Philips [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
Accessing individual elements of an array returned by a function
Top