+ Reply to Thread
Results 1 to 4 of 4

How do I automatically copy formulas to new rows as new rows of raw data are added?

  1. #1
    Registered User
    Join Date
    11-14-2007
    Posts
    39

    How do I automatically copy formulas to new rows as new rows of raw data are added?

    Initial clarification: I don't want to have to go through to normal dragging process for copying fomulas to new cells. That's not what I mean by "automatically." On to my question...

    In Sheet 1 I have my raw data. Sheet 2 contains my formulas that analyze this data. The way I am analyzing the data works out so that each row on Sheet 2 is analyzing its corresponding row on Sheet 1. For example, Row 2 of Sheet 2 produces outputs based solely on the data in Row 2 of Sheet 1. Row 3 of Sheet 2 uses only info in Row 3 of Sheet 1, etc.

    As an initial setup, let's say I have 3 rows of raw data in Sheet 1. Therefore, I have 3 rows in Sheet 2. Is there a way that I can program my formulas in Sheet 2 so that they'll automatically copy themselves to the new rows as I add new rows of raw data in Sheet 1? Maybe there is some way that a dynamic range can help solve my problem?

    Thanks!

    Cross-post link
    Last edited by maxedison; 02-14-2008 at 02:44 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    maxedison,

    Please read forum rules and message to cross posters.
    If you post to another forum you must add the link

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    in sheet 2 use

    =if(sheet1!A1="","", sheet1!A1*B1+c)

    copy this down in sheet 2, and all cells will be blank until sheet1 data is added

  4. #4
    Registered User
    Join Date
    11-14-2007
    Posts
    39
    My apologies for not following the cross-posting rules. I'll certainly do so in the future. I'll edit my original post to include the link to the other forum in which I posted.

    Robert,

    That doesn't really improve upon what I already had. I can drag my formulas down in Sheet 2 and all those cells will be blank until data is added in Sheet 1 without using the IF function you provided. As I said in the original post, I want to completely avoid having to manually drag the formulas to include new rows of data. I just want to be able to add data to new rows in Sheet 1, and have Sheet 2 automatically copy the formulas into the corresponding rows.

    Perhaps I'm asking for something more than Excel can do

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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