Alternatives to OFFSET - Excel running very slowly

jacc99

New Member
Joined
Jun 14, 2021
Messages
12
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. MacOS
Hi guys,

I have a very large data set, running well over 1,000,000 offset functions across the sheets. This as you can imagine is making the excel run very slowly.
I have seen index is an alternative to offset in some respects, however i am struggling to apply for my use.
I am currently using offset so that is can dynamically change the lookback period in a returns formula (I have uploaded a small segment from my file, see excel mini below).
I am hoping someone has an idea of how i can implement index or an alternative non volatile function in this respect?

Many thanks,
J

TestSheet.xlsm
ABCDEFGHIJKLM
1-1
21Wed 081/2/19 8:001.363968.954428.69272.700311.264791.14005.98589109.162  
32Wed 081/2/19 8:011.363888.950938.6902.700361.265131.14045.98558109.151-5.87E-05
43Wed 081/2/19 8:021.36418.950438.69017.700391.265491.14054.98553109.1310.000161
54Wed 081/2/19 8:031.364268.953238.69416.700281.264741.14031.9856109.0920.000117
65Wed 081/2/19 8:041.364248.95288.69293.700171.264691.1404.98569109.086-1.47E-05
76Wed 081/2/19 8:051.363978.953088.69361.700091.264551.14036.98561109.057-0.000198
87Wed 081/2/19 8:061.363838.953998.69304.700081.264161.14019.98568109.027-0.000103
98Wed 081/2/19 8:071.363658.954578.693.700161.264111.14012.98561109.052-0.000132
109Wed 081/2/19 8:081.363778.958518.69557.700161.263961.13994.98571109.0348.8E-05
1110Wed 081/2/19 8:091.363858.958218.69386.700171.263961.13999.98569109.5.87E-05
1211Wed 081/2/19 8:101.363418.957448.69388.700361.263881.14019.98569109.038-0.000323
1312Wed 081/2/19 8:111.363698.958718.69252.700371.263471.14003.98587109.0230.000205
1413Wed 081/2/19 8:121.3648.961178.69454.700311.263771.13984.9858109.0170.000227
1514Wed 081/2/19 8:131.364068.959848.69411.70031.264181.13989.98571109.0014.4E-05
1615Wed 081/2/19 8:141.364068.961448.69504.700321.263951.13971.98606109.0170
1716Wed 081/2/19 8:151.363948.961528.69457.700271.263991.13974.9859109.018-8.8E-05
1817Wed 081/2/19 8:161.363958.961038.69399.700171.264251.13999.98599109.0157.33E-06
1918Wed 081/2/19 8:171.363498.961388.69286.700261.264461.14016.98599109.027-0.000337
2019Wed 081/2/19 8:181.363678.960968.69395.700271.264511.14024.98593109.0330.000132
2120Wed 081/2/19 8:191.363228.960998.69465.700371.264531.14026.9857109.02-0.00033
Sheet1
Cell Formulas
RangeFormula
M2M2=IF(AND(L2="",L2>0),"",IF(L2>0,1,-1))
B2:B21B2=TEXT(C2,"ddd hh")
L2:L21L2=IFERROR(LN(D2/OFFSET(D2,$M$1,0)),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:K21Cellcontains a blank value textNO
C3Cellcontains a blank value textNO
C3Cell Valuecontains """"textNO
C3Cell Valuecontains "N/A"textNO
H2:K21Cellcontains a blank value textNO
H2:K21Cell Valuecontains """"textNO
H2:K21Cell Valuecontains "N/A"textNO
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Excel Formula:
=IFERROR(LN(D2/INDEX($D$1:$D$20,ROW(D2)+$M$1)),"")
 
Upvote 0
Amazing! thanks a lot that works perfectly. Really sppreciate the swift repsonce!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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