+ Reply to Thread
Results 1 to 4 of 4

Insert a row below last line

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Insert a row below last line

    Hello,

    How can I insert (or add) a new row to the bottom of a table so that Excel now updates all other worksheets and formulas with the new size of the table (+1 row) ?

    I can right click on the row number and do "insert" but that inserts above the last line. I want it to be an "add" really, not an "insert".

    A workaround is to add a dummy last row and always insert above it if there is no other way.

    many thanks

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Insert a row below last line

    Welcome to the forum.

    If you use an actual Excel Table then any formulae which refer to it will automatically update if you add a row to the bottom. The Table will automatically expand to incorporate any new row and since references to Tables don't use row/column numbers but instead use a format like Table1[Data], any related formulae don't need to be changed.

    For example:
    In A1 type 'Data'. In A2 to A5, put in 1,2,3,4. Now select any one of those cells, go to the 'Insert' tab and click 'Table' (2nd from left) - click OK on the dialogue box which opens.
    This Table is automatically named 'Table1' - you can change this on the 'Table Tools | Design' tab which appears whenever you have a Table cell selected.
    Now select a cell somewhere else - C1 for example (any cell will do as long as it's not immediately adjacent to the table). Enter this: =SUM(Table1[Data])
    You'll note that as soon as you start typing 'Ta' you'll see an option for 'Table1' appear which you can click to auto-select. The same happens when you type the '[' with the top option being 'Data'.
    You'll get the expected result of '10'.
    Now type any number you want in A6. You'll see the table automatically expand to include row 6 and your Sum will change - without you having to alter the formula at all.

    These pages give more info:
    https://support.office.com/en-gb/art...9-6c94334e492c
    https://support.office.com/en-gb/art...3-C8AE6D2B276E

    I hope that helps (and isn't teaching you to such eggs )
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    01-25-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Insert a row below last line

    Hi and thanks for the elaborate reply.

    I was not using a table, simply a few rows of data, then right click on a row and "insert" but I was looking for "insert after". This is because even without a table, any references to a Range do get updated if you do "insert" on the right click, but that means you are pushing your last row down one and inserting above it which is not what I really wanted.

    We also do not have "insert above" which would insert a row above an existing one, inheriting from the existing row which I have selected and right clicked on! Instead the "insert" pushes everything down one, but inherits from the row above (which was not selected)!

    It would be more intuitive if we had "insert above" in which case the current row gets pushed down one, and "insert below" in which case a new row is made beneath the one selected, and in both cases the new rows inherit from the selected one. Since this is the one selected and the one I am interacting with.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Insert a row below last line

    Although I agree it would be useful to have what you want, unfortunately I don't know of any non-VBA way to do it. Tables go some way towards it, but there are times when they're not what you want.
    If it's not too much hassle to have a blank row at the bottom of your data, that's probably the easiest solution to your original question. Sorry I can't be of more help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Insert line and copy data of previous line with certain changes
    By vijayca in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2016, 07:19 AM
  2. [SOLVED] Insert Line Every Other Row
    By rosethorn5 in forum Excel General
    Replies: 19
    Last Post: 08-04-2015, 04:08 AM
  3. [SOLVED] Where more than 1 line exists in excel transfer - insert line in word report bookmark
    By PippiLaRue in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 05:04 AM
  4. Insert a line at zero value in a line graph
    By bobby_712 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-05-2012, 05:21 PM
  5. Insert Line Every Other Row w/Multiple Formulas based on Line Above
    By xyshel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2011, 11:09 AM
  6. Insert New Line
    By Clare in forum Excel General
    Replies: 4
    Last Post: 07-06-2006, 10:45 AM
  7. Replies: 8
    Last Post: 11-30-2005, 09:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1