Indirect function alternatives.

Eamonn100

Board Regular
Joined
Nov 12, 2015
Messages
152
Excel 2013/2016
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBL
1Latest Figure Current DateLatest Date
21.0002.0003.0004.0005.0006.0007.0008.0009.00010.00011.00012.00013.00014.00015.00016.00017.00018.00019.00020.00021.00022.00023.00024.00025.00026.00027.00028.00029.00030.00031.00032.00033.00034.00035.00036.00037.00038.00039.00040.00041.00042.00043.00044.00045.00046.00047.00048.00049.00050.00051.00052.00053.00054.00055.00056.00057.00058.00059.00060.00061.000Jan-17Jan-18

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



Excel 2013/2016
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBI
1
2Sheet1!2.0003.0004.0005.0006.0007.0008.0009.00010.00011.00012.00013.00014.00015.00016.00017.00018.00019.00020.00021.00022.00023.00024.00025.00026.00027.00028.00029.00030.00031.00032.00033.00034.00035.00036.00037.00038.00039.00040.00041.00042.00043.00044.00045.00046.00047.00048.00049.00050.00051.00052.00053.00054.00055.00056.00057.00058.00059.00060.00061.000

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

<tbody>
</tbody>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Eamonn100

Board Regular
Joined
Nov 12, 2015
Messages
152
Above is a 60 cell example of what I'm doing. Sheet1 is my main sheet and I use Sheet2 as a updating sheet. I'm using the INDIRECT function so that I can switch between different main sheets. Basically I'm trying to incert a new figure and move all the others one space to the left when a condition is met. Starting in B2 Sheet2 is this formula. It is dragged over and down.

=IFERROR(IF(DATEDIF(INDIRECT($A$2&CELL("address",$BK2)),INDIRECT($A$2&CELL("address",$BL2)),"M")>=12,INDIRECT($A$2&CELL("address",C2)),INDIRECT($A$2&CELL("address",B2))),INDIRECT($A$2&CELL("address",B2)))

The formula calculates the difference between 2 dates on Sheet1, (cells BK2 and BL2). If the difference between the two dates is 12 months or greater it returns the next cell to the right. If an error or less than 12 months it returns the current figure, (stays the same). Because of the large number of INDIRECT function (20 million) it calculates extremely slow. Can anyone think of a way of updating and moving a group of cells to the left when certain conditions are met?
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,132,706
Messages
5,654,841
Members
418,155
Latest member
demasisi

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
Top