dynamic name table

white_flag

Active Member
Joined
Mar 17, 2010
Messages
331
Hello

I like to add an dynamic table range via INSERT>>NAME>>DEFINE ...than I put the name "my_table". on the reference I add this:

Code:
=OFFSET(data!$D$5;0;0;COUNTA(data!$A:$A);COUNTA(data!$A:$A))

but the table have all the time ONE extra row .. I like to delete that row from definition ..but How?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
thank you. It is working well.
But I have another table with different rows and columns. I put the same definition and on the range is missing one column and 13 rows

entire table is 10 columns and 21 rows. Any Ideea
 
Upvote 0
Why are you setting the number of columns to the count of the non-blank cells in column A? Shouldn't you be counting along the row?
 
Upvote 0
maybe I do not understande correct to use OFFSET

Rich (BB code):
OFFSET(reference,rows, cols,height,width)
 
Upvote 0
like thsi is not going

Code:
=OFFSET(Data!$C$10;0;0;COUNTA(Data!$A:$A);COUNTA(Data!$C:$C))

Code:
=OFFSET(Data!$C$10;0;0;COUNTA(Data!$A:$A);COUNTA(Data!$1:$1))
 
Upvote 0
What range do you expect to be set?

You need to count the same column and row as OFFSET's first argument (adjusting for non-blank cells above or to the left).
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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