+ Reply to Thread
Results 1 to 7 of 7

Auto Add new rows on master sheet as needed

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    USA, Kentucky
    MS-Off Ver
    Office 2013
    Posts
    25

    Auto Add new rows on master sheet as needed

    I have a workbook containing two sheets. 1 is my master and is formatted to my liking, the second contains raw data that is pulled from a .csv file.

    The data I need populated is from the raw data .csv beginning on row 17. As this data grows I would like it to automatically grow my master sheet begining on row 4.
    If possible I'd like the final row to be a total sum of column C. I would also like a daily total in column C for all Dates that match in column A.


    Small example would be:

    Column A Column B Column C
    Date Time Rainfall

    Row4 1/22/2013 13:51 0.15 in
    1/22/2013 13:52 0.20 in

    Daily Total 0.35 in

    1/23/2013 08:10 0.01 in
    1/23/2013 08:11 0.02 in

    Daily Total 0.03 in

    Total Rainfall 0.38 in

    The date and Time stamp along with the rainfall would be located in the raw data sheet beginning in Row 17.
    The master sheet would begin populating on Row 4. Not sure if the calculations would be VBA, Macro, or manually formulated?

    Thanks for any and all assistance.

    Rob

  2. #2
    Registered User
    Join Date
    01-25-2013
    Location
    USA, Kentucky
    MS-Off Ver
    Office 2013
    Posts
    25

    Re: Auto Add new rows on master sheet as needed

    Here is a manually manipulated version of what I am looking for. The .csv file will be downloaded from a piece of equipment once a week and will be appended to each time. Any number below 100 represents x * 0.01 in. 100 = 1.00 in.

    Thanks for any and all assistance.

    Rob
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    USA, Kentucky
    MS-Off Ver
    Office 2013
    Posts
    25

    Re: Auto Add new rows on master sheet as needed

    I have the insert part down now. Just to get the retain formatting part to work, and the math part.

    Here is my code I used:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    USA, Kentucky
    MS-Off Ver
    Office 2013
    Posts
    25

    Re: Auto Add new rows on master sheet as needed

    Hello everyone!

    I may possibly be going about this the wrong way. But thus far I have it now where it will automatically import the data from my RawData.csv file, It will copy the logical data from the import to the master sheet and will convert the raw data to be displayed as the correct measurement.

    Now the data is sorted Chronologically by date, and I need it to total Column C when the Date in Column A is alike. Since it is in chronological order, it can insert the total for that date in the row above the new date. It will need to continue to total by date until the end of data in that range.

    Finally I would love a total for the entire reporting period.

    Here is the code I have thus far:

    Please Login or Register  to view this content.
    Thank in advance for any assistance.

    ~Rob

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Auto Add new rows on master sheet as needed

    Hi Rob,

    I have been working on this for the past couple of days when I had time but didn't want to post till I got it working. Have a look at the attachment. It will import the data from the data sheet and calculate the results per day and then the total.

    Hope this helps.

    abousetta
    Attached Files Attached Files
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  6. #6
    Registered User
    Join Date
    01-25-2013
    Location
    USA, Kentucky
    MS-Off Ver
    Office 2013
    Posts
    25

    Re: Auto Add new rows on master sheet as needed

    Quote Originally Posted by abousetta View Post
    Hi Rob,

    I have been working on this for the past couple of days when I had time but didn't want to post till I got it working. Have a look at the attachment. It will import the data from the data sheet and calculate the results per day and then the total.

    Hope this helps.

    abousetta
    abousetta,

    Thank you! Your work was absolutely brilliant! Just what I was looking for.

    I can now merge your code and my code together for seamless integration.

    Again thanks,

    ~Rob

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Auto Add new rows on master sheet as needed

    Thanks for the feedback. I was glad to be able to help.

    Good luck.

    abousetta

+ 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