Sizing a report based on a dynamic sized table

abmyers

New Member
Joined
Jul 28, 2011
Messages
7
Im guessing this probably needs a macro?

I have a table on Sheet 3 that has a dynamic number of rows.

I have a worksheet on Sheet 2 that displays some data from the table that fits the inquiry. For instance right now the table on Sheet 3 has 123 entries and there are 11 entries that meet the criteria that copy over to Sheet 2, using formulas.

Here is the problem. If the table shrinks, then formulas in Sheet 2 suddenly have #REF! errors, and even if the table grows back, Sheet 2 wont fix. I have to manually go fill down.

Is there a way to have sheet 2 delete cells that extend below the matching number of entries, or fill down if it needs more?

For istance, if the table has 100 rows and only 3 meet the criteria, have everything below row three on sheet 2 deleted. If suddenly the table has 1000 enties and 200 fit criteria have Sheet 2 fill down 200.

Ideally, I'd like to have a disclaimer at the bottom of sheet 2 so I'd like to make its location dynamic as well.

Thanks in advance for any suggestions.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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