Using SLOPE function across multiple sheets

Teckstein

New Member
Joined
Sep 24, 2012
Messages
11
I am using this formula
=SLOPE('2012:2017'!$A$2,'2012:2017'!B61)
to calculate the slope of a line. The sheets, 2012, 2013....2017 contains the data entry. The cell A2 in each sheet contains the x coordinates that are common and then B61 contains the first set of y coordinates that I want to calculate a slope for. There are additional y coordinates in other cells -- so I repeat the formula like this =SLOPE('2012:2017'!$A$2,'2012:2017'!B62 (through CV113) The problem I have is that the error #REF ! if returned for all formulas. I have tested that the '2012:2017'!$A$2 and '2012:2017'!B61 are correctly formatted by running sums and averages across these ranges.

Any ideas??
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try...

=SLOPE(N(INDIRECT("'"&{2012,2013,2014,2015,2016,2017}&"'!A2")),N(INDIRECT("'"&{2012,2013,2014,2015,2016,2017}&"'!"&CELL("address",B61))))

or

=SLOPE(N(INDIRECT("'"&(2012+ROW(INDIRECT("1:6"))-1)&"'!A2")),N(INDIRECT("'"&(2012+ROW(INDIRECT("1:6"))-1)&"'!"&CELL("address",B61))))

Note that the formulas can be copied down and across.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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