Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resize tables using formulas

640 views
Skip to first unread message

Jai

unread,
Dec 14, 2008, 7:03:01 PM12/14/08
to
Hi,
Is it possible to resize a table using a formula?

I am importing data from a database and then creating a new worksheet using
some of this data. I am currently using a large table to allow for variations
in size but would much prefer a dynamic table that changes as the data from
the database does. Any ideas?

Thanks

Bob Greenblatt

unread,
Dec 15, 2008, 8:16:15 AM12/15/08
to
On 12/14/08 7:03 PM, in article
E91A5B4B-873B-45DD...@microsoft.com, "Jai"
<J...@discussions.microsoft.com> wrote:

I'm not entirely sure what you mean or are trying to do. Have you defined a
name for the table that uses a dynamic reference? If so, the table should
resize accordingly. Try defining the name to be something like:
=offset($a$1,0,0,counta($a:$a),counta($1:$1))

--
Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom

Jai

unread,
Dec 15, 2008, 4:58:29 PM12/15/08
to
Sorry for the fuzzy description. I have a table which I obtain from a
database. I then add a column to the end and insert a formula which gives the
row if the row forms part of the data I want.

In a new worksheet,which contains I table, I use the INDEX and SMALL
functions to retrieve the rows of interest. This new table is set to 30 000
rows. This is more than what I need, sometimes much more, but I cannot reduce
this number as it may not always be enough.

I want to know if it possible to use a formula to resize the table. I
originally used and INDEX and COUNT to give the range of the table but
unfortunately the formula was replaced by the results of the formula (ie.
A2:index(C:C,count('Data'!F:F)) became A2:C24592 in resize table)

Thanks,
Jai

Bob Greenblatt

unread,
Dec 16, 2008, 9:25:05 AM12/16/08
to
On 12/15/08 4:58 PM, in article
D26276D9-85D7-44BC...@microsoft.com, "Jai"
<J...@discussions.microsoft.com> wrote:

The answer is YES! I showed you how to do it in my prior answer.

Jai

unread,
Dec 16, 2008, 5:07:02 PM12/16/08
to
I tried that but it wouldn't let me edit the table in name manager. The
formula bar is greyed out. Is there some trick to doing this?

Thanks for your help Bob

Bob Greenblatt

unread,
Dec 17, 2008, 7:29:52 AM12/17/08
to
On 12/16/08 5:07 PM, in article
8745FA6A-F5C0-411B...@microsoft.com, "Jai"
<J...@discussions.microsoft.com> wrote:

No, no trick. Is the sheet protected? If so, you can not edit the name.

Jai

unread,
Dec 17, 2008, 6:09:01 PM12/17/08
to
The sheet is not protected. In name manager I can alter the 'refers to:' for
a range I name myself, but a table that already exists can only have its name
altered, with the bar allowing for alteration of cells to which the table
refers being greyed out. I know exactly what formula to use, problem is it
wont let me do it.

Thanks,
Jai

Bob Greenblatt

unread,
Dec 18, 2008, 8:36:18 AM12/18/08
to
On 12/17/08 6:09 PM, in article
73D18E1A-6FEA-4316...@microsoft.com, "Jai"
<J...@discussions.microsoft.com> wrote:

Are you using the list manager to define the table, or have you defined the
table name your self?

0 new messages