+ Reply to Thread
Results 1 to 8 of 8

I need a Formula to copy down cell when table expands.

  1. #1
    Registered User
    Join Date
    07-15-2022
    Location
    Delta Canada
    MS-Off Ver
    365
    Posts
    73

    I need a Formula to copy down cell when table expands.

    I have a table that needs a formula for a cell.

    When table expands down just copy cell from above to expand with table.

    The first example is The table with FIRST row filled with data.
    Once the table expands it should copy JUST 4 columns ... B G H I
    C D E F are ok , they do not need help.

    The second table is how it should look when done.
    07.png
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: I need a Formula to copy down cell when table expands.

    Instead of using simple text like Car, change it to a formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then, when you add a row, it will copy the formula down. You don't really need VBA.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-15-2022
    Location
    Delta Canada
    MS-Off Ver
    365
    Posts
    73

    Re: I need a Formula to copy down cell when table expands.

    Those entries are coming from a data user form... The user inputs that name and it changes when they start using the table.
    I posted the original sheet but it is pretty confusing.
    I just uploaded the almost orginal one....
    The sheet has 2 user forms to input data into theFIRST row of the table. First user form fills in B....G...H....I
    Column F auto fills with hidden formula and VBA to put a time stamp when column D has data.
    Column C just puts a # using a formula when table expands.
    Column D is a manual filled number.
    Column E FIRST row is user input, but all rows after auto fill to 3700 when data is entered into Column D
    The clear sheet button just clears the first row of data, then all data below and deletes all extra rows leaving only first 2 rows.

    The part I need help with right now is when I enter data into D and the table expands, I need the static columns to just copy down that not already do that.
    The second table at the bottom is just to show what it should like like if data copies down in B G H I

    I hope this makes a little sense.
    Thanks so much
    Chris

  4. #4
    Registered User
    Join Date
    07-15-2022
    Location
    Delta Canada
    MS-Off Ver
    365
    Posts
    73

    Re: I need a Formula to copy down cell when table expands.

    Can my user form put a =" " around the users Entry?
    If so..This may solve the issue...


    Like maybe when you submit the form with 4 inputs.... put the ( =" input " ) on each one? Just a thought????
    Last edited by chrispikekerry; 11-17-2022 at 10:55 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: I need a Formula to copy down cell when table expands.

    Try this.
    In C11 then copy to G11:I11

    =IF(len(C11&D11&E11&F11)>0,C10,"")

    Copy down all formulas for few rows. As you fill up D:F data will be copied in other columns.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    07-15-2022
    Location
    Delta Canada
    MS-Off Ver
    365
    Posts
    73

    Re: I need a Formula to copy down cell when table expands.

    Hello Sam Murty
    I adjusted the formula I can make it work for only some columns
    Attachment 805478

    in my example.... G refers to cell above... and >0,G10, "" is at end of formula
    B G H I are the columns I need the copy down help

    G and H ARE THE ONLY ONES WORKING
    "G" IS =IF(LEN(B8&H8&I8)>0,G8,"")
    "H" IS =IF(LEN(B8&G8&I8)>0,H8,"")
    Last edited by chrispikekerry; 11-17-2022 at 01:35 PM.

  7. #7
    Registered User
    Join Date
    07-15-2022
    Location
    Delta Canada
    MS-Off Ver
    365
    Posts
    73

    Re: I need a Formula to copy down cell when table expands.

    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this.
    In C11 then copy to G11:I11

    =IF(len(C11&D11&E11&F11)>0,C10,"")

    Copy down all formulas for few rows. As you fill up D:F data will be copied in other columns.
    And you ARE referring to Book2-2 (3) the last book I uploaded right?
    Yah I have been playing around with it not having much luck....

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: I need a Formula to copy down cell when table expands.

    Please upload file showing problem.

+ 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] How do I maintain formula in last row when table expands?
    By chrispikekerry in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-09-2022, 02:58 PM
  2. Automatically add new row to worksheet IF dynamic table above expands?
    By aussie.lilly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-22-2021, 09:25 AM
  3. How to change a number to increase in size as the table expands
    By LinaL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2018, 09:47 AM
  4. Duplicate formula in rows as pivot table expands
    By vrinner in forum Excel General
    Replies: 1
    Last Post: 02-05-2018, 03:50 PM
  5. Formulas not added as table expands
    By mjcarman01 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-27-2017, 02:27 PM
  6. Replies: 3
    Last Post: 04-06-2016, 12:19 PM
  7. VBA/macro to copy a dataset which expands each month
    By LemonTwist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2008, 01:16 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