+ Reply to Thread
Results 1 to 10 of 10

Automatically copy to new rows to new rows as raw data is added on another worksheet

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Automatically copy to new rows to new rows as raw data is added on another worksheet

    Hi everyone,

    This is my first time using this forum, and my macro skills are super basic so really hoping someone can help me out with this little problem...

    I basically have two worksheets: the first one is called "Residential_Inputs" and it only contains raw data. The first set of data filled starts from F8 and I will keep adding new rows and columns over the years. Basically, I will be entering raw data to this sheet every quarter.

    The second sheet is called "Residential_Calculations" and will consist of one simple calculation which is: Residential_Inputs F8/Residential_Inputs E8.

    Because the number of rows in my "Residential_Inputs" sheet will keep changing as I enter raw data every quarter, I do not want to have to copy/paste the formula or link the data everytime I enter new data.

    Is there a way I can use a macro so that everytime I enter raw data into a new row in the "Residential_Inputs" sheet that formula is automatically entered into a new row in the "Residential_Calculations" sheet?

    Would appreciate any help I can get on this! Thanks!!!
    Last edited by lanoushi; 12-12-2013 at 07:03 AM. Reason: type

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Can you attach a workbook with some sample data including the formulas you have? To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Sure!

    So basically I would just input data into the first sheet, and for every new row of data that I input, I would like for the same row to be replicated into the second sheet with the formula automatically so I don't have to do it manually over the course of time...

    Thanks!!
    Attached Files Attached Files
    Last edited by lanoushi; 12-12-2013 at 07:42 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Hi,

    Can you share your workbook with us? If so manually add the results you expect to see on the Calculations sheet so we can be cleaar as to exactly what you want

    1. Are you expecting to see as many rows in the Residential Calculations sheet as there are in the Inputs sheet?
    2. Are you adding new blocks of data below the existing data?
    3. Is there a particular reason why you want a second sheet with just a single formula when you could just add another column to the Inputs sheet which gets updated automatically as you add new data.
    4. Is it really a single formula on the Calculations sheet or a formula that is copied down all the rows (see 1 above)

    One way would be the Sheet Calculations sheet Activate event.

    Something like

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Hi,

    When you post a question without attaching a workbook you should ensure what you say faithfully describes your workbook.
    You originally said that the Calculations sheet would be 'one simple calculation'. OK I think we might deduce that what you meant was one column with a simple calculation.

    Now you've posted a workbook it seems that you want a calculation in at lest two columns judging by an entry in column G.

    To avoid us all wasting our time would you confirm precisely what you are expecting to see.

    One suggestion. If you are likely to have any sort of requirement to compare or analyse/summarise results by Date, Area, Property type etc. then you should change the layout of your Inputs sheet by adding a fifth date column and a sixth Amount column to your first four.
    Then list all dates in one large 6 column database. You will then be able to use a Pivot Table which will be far more use.

  6. #6
    Registered User
    Join Date
    12-12-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Hi Richard,

    Sure, I posted a sample workbook below.

    Yes, there should be as many rows in the residential calc sheet as in the input sheet. Every 3 months, I will add new rows of data below the existing data in the residential inputs sheet and those rows should then be replicated automatically into the residential calc sheet.

    The reason I am doing this in a second sheet is because my columns represent yearly quarters, and so the rows and columns will gradually increase over time, so I do not want the workbook to become messy...
    Attached Files Attached Files

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    The Pivot table suggestion I mentioned will be less messy than your current layout believe me.
    Just try it with a sample of data. A Pivot table has a particular functionality that will automatically group dates by quarter as well as a lot of other useful stuff.

  8. #8
    Registered User
    Join Date
    12-12-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    Great, I will use pivot tables then to group the data..

    Thank you so much for your help!

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    OK,

    If you have any difficulties with your PT just let us know and upload it. They really are a beautiful construction and should you have other management type information requests to satisfy you'll save yourself hours of time.

    Been there and got many T shirts.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically copy to new rows to new rows as raw data is added on another worksheet

    ..forgot to mention that you'll still need to use a macro to add the calculated, now a 7th field to your Inputs sheet. And rather than put the macro in the sheet activate event which would fire every time you looked at the data. Put it in a module level procedure and just add a button to the worksheet and add the macro to the button.

    So something like

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 01-16-2013, 01:34 PM
  2. [SOLVED] Copy rows from my main worksheet to another worksheet based on data in one cell
    By gcol in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-08-2012, 05:12 AM
  3. Sum values in cell from variable rows (rows are added and deleted)
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2010, 08:38 AM
  4. Add rows and search/copy/paste text into added rows
    By HelenW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2010, 04:06 AM
  5. Replies: 3
    Last Post: 02-14-2008, 02: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