Using named range in LINEST formula

MahTah

New Member
Joined
Feb 26, 2016
Messages
12
Hello All,
I want to use a named range in the LINEST formula (European version of Excel). It works fine if I just use a dynamic range in the formula like this:

Code:
=INDEX(LINEST((INDIRECT(ADDRESS($AQ$1;22;4)):INDIRECT(ADDRESS(COUNTA(B:B);22;4))); (INDIRECT(ADDRESS($AQ$1;27;4)):INDIRECT(ADDRESS(COUNTA(B:B);27;4)))^{1\2});1)
but of course, this is not easy to read and maintain along other formulas. Therefore I defined two named ranges of the above dynamic ranges as below:

DeltaTRange:
Code:
=INDIRECT(ADDRESS('Test Data'!$AQ$1;27;4)):INDIRECT(ADDRESS(COUNTA('Test Data'!B:B);27;4))

FlowErrorRange:
Code:
=INDIRECT(ADDRESS('Test Data'!$AQ$1;22;4)):INDIRECT(ADDRESS(COUNTA('Test Data'!A:A);22;4))

These are working correctly on a simple function like AVERAGE but using it in LINEST funcion as below gives a "#REF!" error.

Code:
=INDEX(LINEST(FlowErrorRange; DeltaTRange^{1\2});1)

How should I edit the formula above to make it working?

Thanks in advance
Mahdi
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try the following (cannot comment on the European syntax):

=INDIRECT(ADDRESS('Test Data'!$AQ$1;27;4)):INDIRECT(ADDRESS(COUNTA('Test Data'!$B:$B);27;4))
=INDIRECT(ADDRESS('Test Data'!$AQ$1;22;4)):INDIRECT(ADDRESS(COUNTA('Test Data'!$A:$A);22;4))
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,819
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top