Dynamic ranges in tables, automatic inserts of formulas and performance.

Obosoleto

New Member
Joined
Feb 13, 2012
Messages
1
Hi all,
I'm facing a performance issue concerning tables and dynamic ranges.
I'm not sure I can do what I want with basic Excel instructions WITHOUT macros...
Let's say that in Sheet1 I have a BIG table (eg. 10000 rows) that periodically grows in size by new inserts.

In Sheet2 I need to have an "adapted" twin table, that references the one in Sheet1. For each column in Sheet2 I use INDIRECT(Table-Sheet1-ColumnX) to keep up with the new insert in Sheet1.

My problem is that in Sheet2 I have to explicitly say in EACH cells of each row of the columns to reference to the corresponding cell of Sheet1, but since Sheet1 rows grow in number, therefore in Sheet2 I have to copy manually the formula INDIRECT(Table-Sheet1-ColumnX) in let's say 100000 rows to cover the potential growth of rows in Sheet1. By doing this Excel calculates hundreds of thousands unnecessary rows with NULL or empty values affecting greatly the performance of the calculations.

My question is: is there a way to tell to Sheet2 to dynamically calculate only the number of rows corresponding to the number of non-empty-rows in the table of Sheet1?
In other words, can I fill cells in Sheet2 automatically from blank cell so that after an insert in Sheet1 they actually display the corresponding values in Sheet2, without having to write the referencing formula explicitly, therefore without having thousands of rows with #VALUE or #REF that Excel has to calculate without unnecessarily?

Thanks in advance for any help.

Example:
BEFORE

Sheet1__________________Sheet2
-------------------________-------------------
Rome | 17 | green |________Rome | 17 | green |
Paris | 20 | red |___________Paris | 20 | red |
London | 9 | blue |_________London | 9 | blue |
? | ? | ? |
? | ? | ? |

*? is new inserts

AFTER NEW INSERTS IN SHEET1

Sheet1____________________Sheet2
-------------------_________-------------------
Rome | 17 | green |_________Rome | 17 | green |
Paris | 20 | red |____________Paris | 20 | red |
London | 9 | blue |__________London | 9 | blue |
Berlin | 34 | purple |_________Berlin | 34 | purple |
? | ? | ? |

*? is new inserts
Without having to write explicitly the formula in Sheet2-Row5 and the following, so Excel doesn't calculate them.

Thank you.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,216,028
Messages
6,128,393
Members
449,446
Latest member
CodeCybear

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