Dynamic range for table

maps5

New Member
Joined
Oct 15, 2009
Messages
23
Hello.

I would like to place a question regarding resizing a table.

I have a sheet with 2 tables, 1 button with a recorded macro.
The macro was recorded with a advanced filter for extracting unique records from table 1 and paste the results on P1.
These results become the first column of table 2.


Other columns on table 2 update automatically using lookup and sumproduct functions...



Table 2 is being used for a line chart.


The idea is, I enter values on table 1 (on columns A, B and C), and table 2 as well as the chart will update with new entered values.

My issue comes when a new week is starting.
Because when I enter a date belonging to a new week number, than run the macro, this new week number will not be listed within table 2’s dimensions.
If table 2 was P1-T5, after running the macro, it will still be P1-T5 but there will be a new value on P6 that was not placed within the table.


Can I resize table 2 as needed??
Perhaps on the same macro that runs the advanced filter.

Or maybe you have a better suggestion on how I could work around this.

If you don't understand my problem description, please let me know.
I'm not able to upload a example of my sheet, because I'm currently at work.
But I can do it as soon as I get home.



Thanks in advance.

Regards.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
As promised, here is a sample of my excel file.

When I add a new row of data on Table 1 and hit the button (which runs a macro for advanced filter to extract unique records, Table 2 should update.

The problem is that, if the new row belongs to a new week, this new week will not be inserted on table 2.

And I need table to remain a table (or dynamic range) because I need to use in a chart, which will also update automatically.

I really hope you can help me out on this one.
Regards.


Excel Workbook
ABCDEFGHIJKLMNO
1DateWeek #Production 1Production 2TotalComments****Week #Production 1Production 2Daily Average P.1Daily Average P.2
2ti 01-feb-20115 / 2011400300700*****5 / 201123001850575,00462,50
3on 02-feb-20115 / 20116006001200*****6 / 201141002500820,00500,00
4to 03-feb-20115 / 20117005501250*****7 / 201136002800720,00560,00
5fr 04-feb-20115 / 20116004001000*****8 / 2011800700800,00700,00
6ma 07-feb-20116 / 20118004501250**********
7ti 08-feb-20116 / 20116005001100**********
8on 09-feb-20116 / 20119005401440**********
9to 10-feb-20116 / 20118004801280**********
10fr 11-feb-20116 / 201110005301530**********
11ma 14-feb-20117 / 20116004001000**********
12ti 15-feb-20117 / 20118006001400**********
13on 16-feb-20117 / 20116008001400**********
14to 17-feb-20117 / 201110004001400**********
15fr 18-feb-20117 / 20116006001200**********
16ma 21-feb-20118 / 20118007001500**********
17***************
18***************
19***************
20***************
21***************
22***************
23***************
Data
 
Upvote 0
Hello.

I would like to follow up on this old thread of mine.

If you don't understand what I'm asking for, please let me know and I will try to rephrase the issue/request.

regards
maps
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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