Forum Discussion
=LINEST help
What occurs to me is that you could use as a source for your LINEST function a named range. (Insert....Name...) and have an OFFSET function that designates the size of the range. You could most simply just have two cells that indicate horizontal and vertical ranges from the anchor cell (upper left corner)....
Now, if none of that makes any sense, please upload a sample of your spreadsheet.
- trdebruinDec 06, 2019Copper Contributor
I have uploaded the current version of the sheet 😄
- Riny_van_EekelenDec 06, 2019Platinum Contributor
Have a look at the attached sheet. It's your own with just a few modifications. Above the "Lijnschatting" table, I entered the text for the ranges you call for in the LINEST function. The reference will change based on the value in cell J24, which I interpreted as the number of rows to be included. The LINEST function will call for these ranges with the help of INDIRECT.
See if works for you.
- trdebruinDec 12, 2019Copper Contributor
Your method seems to indeed achieve what I was trying. Could you, explain how this works?
I've taken a look at the formulas you added and I can't make much of it, so it would be nice if you could explain it to me. This way I will be able to replicate/change it by myself
- SergeiBaklanDec 06, 2019Diamond Contributor
Please check this discussion https://www.mrexcel.com/board/threads/blank-cells-and-linest.394619/