+ Reply to Thread
Results 1 to 3 of 3

Looking for a savvy way to apply formulas to a dynamic # of rows

  1. #1
    Registered User
    Join Date
    09-27-2017
    Location
    Miami, FL
    MS-Off Ver
    2013
    Posts
    2

    Looking for a savvy way to apply formulas to a dynamic # of rows

    For my job I have created a fairly complex workbook/template littered with formulas. The basic idea is I have a variety of inputs (internal company queries, data dumps from external partners) which I dump into the template I have created. Whenever I use this template the size of the inputs can range from as little as a few thousand lines to as much as well over a hundred thousand lines. Until now I've just had the formats saved in the first 10 rows or so of each sheet with the rest of the sheet being blank, and will flash fill the formulas each time based on the size of the data inputs. However, I've been asked poka-yoke this template as much as possible so I got to wondering if there's a savvy way to make it so that I can just dump in my data, and the formulas will basically auto-populate to align exactly with the count of rows I need to fill, if that makes sense. Right now the risk is that the user could forget to copy the formulas all the way down and so some of the data will not be analyzed.

    Thoughts? Thanks in advance.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Looking for a savvy way to apply formulas to a dynamic # of rows

    You could apply a named range to each of the columns you use, and these names could be dynamic so that they will adjust to the number of rows that you have.

    Then your formulae could refer to the named ranges as appropriate, rather than to specific range references.

    Hope this helps.

    Pete

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Looking for a savvy way to apply formulas to a dynamic # of rows

    Use a table. The formulas will automatically extend down as data is entered.
    Last edited by shg; 03-30-2019 at 06:11 PM.
    Entia non sunt multiplicanda sine necessitate

+ 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] Creating formulas for rows with dynamic range
    By frostii in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2018, 09:01 AM
  2. [SOLVED] Dynamic macro that copies formulas down to rows with nonblank values
    By Stuartzz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2018, 06:35 PM
  3. [SOLVED] Deleting Dynamic Blank Rows with Formulas
    By sherylt13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2017, 09:45 AM
  4. How to apply to variable number of rows / dynamic rows only.
    By RaptureAG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2014, 07:26 AM
  5. Not so excel savvy- Need to conditional format specific dates in a range.
    By Seasons23 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-07-2014, 08:18 AM
  6. [SOLVED] VBA to enter various formulas every 10 rows and show dynamic formulas not values
    By faby2203 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2013, 07:05 AM
  7. Replies: 2
    Last Post: 09-02-2010, 03:39 PM

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