+ Reply to Thread
Results 1 to 8 of 8

Table Size - Automatic Row Number

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Table Size - Automatic Row Number

    I have a Table1 in Sheet1 (with N1 numbers of Rows in Table1, N1 created at Table creation) and Sheet2 with a numbers of Rows
    I want to : Count Number of Rows with value from Sheet2 (say N2) and Automatic adjust Table 1 numbers of rows to N2+5

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Table Size - Automatic Row Number

    This is a very confusing description, well, at least to me. Do you have a sample workbook you can post with a before and after?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Table Size - Automatic Row Number

    Done, I have attached with better explanation I guess
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Table Size - Automatic Row Number

    So COUNT Column C with values and Make Table numbers of rows = Count so Column C it fit in Table

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Table Size - Automatic Row Number

    Highlight C1:C7 >> copy >> paste on A2

    Table will auto adjust down to the A7

  6. #6
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Table Size - Automatic Row Number

    It will not
    If numbers of rows in Table is bigger then the number of rows in column c, table will not adjust "up"
    That why I like table number of rows to be variable to number of rows in column c

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Table Size - Automatic Row Number

    Seems like this is defeating the purpose of a Table in Excel which is meant to grow as you add new data or decrease as you remove data. Not sure how you end up with empty rows when using a Table.

    Anyway, only way I can think to do it would be with code.

    Please Login or Register  to view this content.
    Say your table spanned from A1 to A21 and in column C you have 7 values. This code would remove the waste from A21 to A9.

  8. #8
    Registered User
    Join Date
    01-10-2018
    Location
    Sint-Truiden, Belgium
    MS-Off Ver
    MS Office Prof 2013
    Posts
    1

    Re: Table Size - Automatic Row Number

    Hi,

    I don't think you need VBA for this.
    Check whether the option "Include new rows and Columns in table" is checked.
    Location of the option: Excel options >> Proofing >> "AutoCorrect Options..." >> "AutoFormat as you type" >> Second option

    If checked, you should be able to paste more cells and the table will adjust its size.

    Regards

+ 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. [SOLVED] Number of Selected Items in Listbox Determine Size of Table
    By Dferrier in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2016, 03:56 AM
  2. [SOLVED] Automatic next table number from 1 to 10? once other players complate the scores results
    By micope21 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2016, 01:26 PM
  3. Pie : automatic scale/size
    By etudianttoulousain in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-21-2014, 02:39 PM
  4. Replies: 1
    Last Post: 06-08-2013, 06:50 AM
  5. Replies: 1
    Last Post: 08-07-2009, 07:36 AM
  6. Auto size a pivot table to a page size
    By *.* in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2006, 12:09 AM
  7. [SOLVED] ehhh, is there a way to automatic size the x-axis of a chart
    By Frodo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-12-2006, 08:35 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