+ Reply to Thread
Results 1 to 2 of 2

how to add rows to existing static table from a dynamic DB table which always has 100 rows

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    how to add rows to existing static table from a dynamic DB table which always has 100 rows

    I've attached an example workbook which has three tabs. The first tab represents live data obtained from an outside database. It will always have 100 rows, but the content of these rows will update depending on the day of the week, and whether or not a day is a holiday.

    The second and third tabs show how I want my workbook to accumulate new data.

    The second tab has some "static" historical data in the top rows, then appends new data to the bottom rows.

    The third tab shows the same data in the second tab, but I have created three hypothetical days in advance. This illustrates how the worksheet continues to add rows as the data in the first tab updates.

    Since the database data has a timestamp in column A and always ends in row 101, I've tried to think of a formula for the second tab which says "if cell A101 is greater than the cell above, add the data in this row" But I can't copy that specific formula down because (I think) the next row would need to refer to the row above it, not cell A101.

    I much prefer some kind of "if" or lookup formula to a macro, because with a macro (which I don't have the knowledge to write) I'd need to figure out how to use it in my "real" workbook which has many more tabs and thousands of rows. (I'm unable to show it publicly because of confidentiality agreement with my client).

    Any advice? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    Re: how to add rows to existing static table from a dynamic DB table which always has 100

    I solved the problem using formulas. Will show the "fix" if anyone's interested.
    Last edited by jrtaylor; 02-25-2019 at 06:11 PM.

+ 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. Change the number of rows in existing table to match cell value
    By quite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2017, 03:36 PM
  2. Replies: 1
    Last Post: 01-26-2016, 07:54 PM
  3. [SOLVED] Trying to add more rows to a table based on existing data
    By davidhale87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 04:03 PM
  4. Excel VB: Add Rows with formulas in an existing Table by changing a cell value
    By Charliebravo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2012, 08:59 AM
  5. Replies: 2
    Last Post: 05-29-2010, 03:28 AM
  6. Appending rows to existing worksheet/table
    By notaprogrammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2008, 08:28 PM

Tags for this Thread

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