Table that automatically adds a new row after data entered in last cell?

LemurTruffle

New Member
Joined
Dec 16, 2016
Messages
3
Hi guys! First time poster here, so forgive and please gently correct any breach in forum etiquette.

Okay so ideally I'd have a table that would start very simply like this:

Test List
NameSizeQuantity
Sum:0

<tbody>
</tbody>


The blank row will have at least a lookup formula in it. And as soon as data is entered into the first row, a new blank row will be automatically added to the bottom of the table (with the same formulas as the first).

Test List
NameSizeQuantity
Orange2.5"20
Sum:20

<tbody>
</tbody>


Test List
NameSizeQuantity
Orange2.5"20
Apple3"40
Sum:60

<tbody>
</tbody>


And so on. I know I could just create a mega table with as many entries as might be needed and just let people delete out unnecessary rows, but I'm trying to make this as user-friendly as possible.

So, is this doable? I'm not super familiar with VBA or macros, but I'm willing to dig into it if y'all think it's possible/can maybe provide some direction.

Thanks!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Welcome to the forum.

You should look into Excel tables. Here's a link:

https://support.office.com/en-us/ar...l-tables-7ab0bb7d-3a9e-4b56-a3c9-6c94334e492c

In short, what you can do is create the headers and first line of your table. Put in your headers, then put in all the formulas you'll need on the next line. Then select the range, go to the Insert tab, and Insert > Table. That's it! Now if you want to add a row to the bottom, just start typing in the row below the bottom line, and a new row in the table will automatically be added, formulas and all. For the sum at the bottom, you can make use of table references like this:

=SUM(Table1[Quantity])

and that will also adjust to the current size of the table.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,216,403
Messages
6,130,364
Members
449,576
Latest member
DrSKA

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