Slope formula where data for y series resides in two workpapers

ExcelFL

New Member
Joined
May 15, 2014
Messages
10
I am trying to use the slope formula where my data for the y series resides in two workpapers. I don't want to combine the data into one workpaper to make the slope formula work. Instead I want to use a formula that appends the y series in one workpaper to the y series in the other.

Current formula in use I am using is:

=SLOPE(INDIRECT($C10&"2013!"&"b22:M22"),INDIRECT($C10&"2013!"&"b8:M8"))

This only references one workpaper which is the issue.

Any help greatly appreciated.

Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Let's say that C10 and D10 contain the values used for the name of both worksheets, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

=SLOPE(N(OFFSET(INDIRECT("'"&T(OFFSET(C10:D10,,INT((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B22:M22"))*2))-1)/12),,1))&" 2013'!B22:M22"),,MOD((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B22:M22"))*2))-1),12),,1)),N(OFFSET(INDIRECT("'"&T(OFFSET(C10:D10,,INT((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B8:M8"))*2))-1)/12),,1))&" 2013'!B8:M8"),,MOD((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B8:M8"))*2))-1),12),,1)))

Hope this helps!
 
Upvote 0
Let's say that C10 and D10 contain the values used for the name of both worksheets, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

=SLOPE(N(OFFSET(INDIRECT("'"&T(OFFSET(C10:D10,,INT((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B22:M22"))*2))-1)/12),,1))&" 2013'!B22:M22"),,MOD((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B22:M22"))*2))-1),12),,1)),N(OFFSET(INDIRECT("'"&T(OFFSET(C10:D10,,INT((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B8:M8"))*2))-1)/12),,1))&" 2013'!B8:M8"),,MOD((ROW(INDIRECT("1:"&COLUMNS(INDIRECT("B8:M8"))*2))-1),12),,1)))

Hope this helps!

Great; I am going to test this out!
 
Upvote 0
Also, if there are any empty cells, they're considered as zeros...
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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