+ Reply to Thread
Results 1 to 10 of 10

creating a yearly database file using info in daily file

  1. #1
    Registered User
    Join Date
    10-18-2007
    Posts
    21

    creating a yearly database file using info in daily file

    Hey.

    I would like to automatically update a 'yearly' database file with info from a file that is changed on a daily basis.

    The daily file that i use has info like date, truck number, delivery stops, weight.

    the database file has the similar headings.

    at the end of each day this daily file is saved. I would like to have the info that is entered into the daily file automatically plugged into the yearly database file into the next available group of cells with respect to the salesperson.

    This is kind of a generalization but i'm hoping to just get pointed in the right direction. If something like this involves vba then it will be beyond my ability and i'll have to do it manually, which is fine, .........

    I will post an example excel file, if needed,...........

    So thanks in advance to anyone who can help. much appreciated.
    Last edited by bilbobagginz; 02-08-2008 at 06:36 AM.

  2. #2
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi,

    is the daily file just one worksheet , that has the data deleted after it is put into the master file

    is the master file just one worksheet

    what do you want the spread sheet to look like when it is done

    could a pivot table do what you need it to do when it is in one file

    could the daily file be a seperate worksheet but in the master file


    steve

  3. #3
    Registered User
    Join Date
    10-18-2007
    Posts
    21
    Quote Originally Posted by stevekirk
    hi,

    is the daily file just one worksheet , that has the data deleted after it is put into the master file

    each 'truck' has it's own separate worksheet, yes

    is the master file just one worksheet

    separate workbook, yes

    what do you want the spread sheet to look like when it is done

    see attached. the information that's need to be plugged in to the 'yearly' is in a 'green' group of cells, it's a just a basic 'example'

    could a pivot table do what you need it to do when it is in one file

    pivot tables ?. I'll look into it

    could the daily file be a seperate worksheet but in the master file

    worksheet within a master workbook. yes, it could be


    steve
    i've placed my answers with the quote.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi,

    have a look at the attached let me know if this could be on the right track

    steve
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-18-2007
    Posts
    21
    thanks stevekirk.

    I committed the cardinal sin of assuming everyone would know what i was talking about. I've created another file that hopefully shows more of what I'm looking for. See attached.

    The daily worksheet is opened daily, the information is completely changed everyday. The date, what trucks are delivering for that day, number of delivery stops and their weight. At the end of each day the 'daily' worksheet is saved. What I would like to have happen is once the 'daily' sheet is saved to have the info sorted and logged into the yearly file as a 'daily' record of truck deliveries per day. Is there an 'automatic' way to have this happen, let's say an 'update' button that I could have on the daily worksheet. Once pushed the 'update' button would sort the info per truck and date. The only information I need to have in the 'yearly' is truck number, date, weight, and how many delivery stops.

    I hope this makes sense. You'll see in the example file that I'm tracking 3 trucks a day. In reality I'm tracking about 20+ trucks a day and so therefore you can see how much time the 'automation' would save.

    I appreciate the help stevekirk. The only compensation I can give is thanks and much appreciated.

    I'm not sure if this is still a 'function' question anymore. My apologies if I've posted in the wrong forum but when you're not sure how to solve the problem it's hard to know where to post the question.
    Attached Files Attached Files
    Last edited by bilbobagginz; 02-09-2008 at 11:36 AM.

  6. #6
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    Your yearly master data should be stored in a list (like in a database) that is arranged in a way that you can analyse the data easily. Steve mentioned Pivot Table, and I understand that you are not familiar with this. A Pivot Table can give you reports of your data in many ways. You can group by months, do averages, find what trucks has most stop, on what day you delivers the most load and lots of more results. This is very easy, when you learn how to use a Pivot Table.

    But most important is to store your data in format that can be a source for these reports.

    My attachment sheet "Yearly Master" shows you how you MUST store your data. Don't even think about storing it other ways, or you will regeret later, when you want to use the data for something useful. How you sort the data in this list is of no importance, and the order of the colums can be changed. The Pivot Report takes care of all the sorting you need.

    The sheet "Pivot Report" shows you an example of such a report made with the source data in the "Yearly Master" sheet. This example report arranges your data just like you showed in your request, but can easily be changed.

    If you dont want to copy the data from your daily sheet to this Master sheet manualy every day, you need a macro to do it for you. For someone to be able to help you with this, you should upload a real example of what your daily sheet looks like at the end of a day.
    Attached Files Attached Files
    Last edited by Bjornar; 02-09-2008 at 12:22 PM.

  7. #7
    Registered User
    Join Date
    10-18-2007
    Posts
    21
    You're right, I'm new to the whole pivot table movement. I am definitely going to incorporate that into a worksheet.

    You're right again about how the info is displayed. I totally agree. But for some idiotic reason I'm not 'allowed' to change this format. Maybe once I show the usefulness of pivot tables I can change their point of view.

    How did you take the info, in the yearly, from rows and transfer it to columns, did you type it all manually or is there an option to do this??

    I'm unable to post the 'actual' file due to 'security' reasons so if you can provide some info about the macro I need to do that would be great. I'm sure there are some good macro tuts around here.

    Thanks again to all for the help, you guys / gals at this forum are awesome.

  8. #8
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    But for some idiotic reason I'm not 'allowed' to change this format. Maybe once I show the usefulness of pivot tables I can change their point of view.
    The format is probably okay for display purpose, and as you see in my example the Pivot Report shows the result this way. But without the blank rows. And I'm sure when you learn the power of Pivot Tables and show them, they will understand that a little layout change does not hurt.
    How did you take the info, in the yearly, from rows and transfer it to columns, did you type it all manually or is there an option to do this??
    I did some copy and paste, but used Paste Special - Transpose to transpose horisontal data to vertical data.
    I also noticed something strange: Your number of stops values contained desimal values, and not whole numbers. What does that mean ? That the truck almost stopped
    I rounded of these decimals permanently, by changing Excels calculation to "Precision as displayed" and then turned of this option after the changes where made permanent.
    I'm unable to post the 'actual' file due to 'security' reasons so if you can provide some info about the macro I need to do that would be great. I'm sure there are some good macro tuts around here.
    I'll see if I can make a macro for you tomorrow, If someone else does not make it before that. But maybe you could provide me with a sample of the exact layout of your daily sheet, without any confidential data.

    Just promice me that you store the yearly data in the format i showed you. You can hide this sheet from your boss if you have to . Then we can use a Pivot Table or some other trick to format it the way you boss want you to. That way you can experiment with Pivot Tables and impress your boss later....

  9. #9
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi,


    as Bjornar has said try and keep it simple. it will reward you in the end

    see attached file and see if that helps. i have added the daily sheet
    tha macro just copies it to the yearly sheet ready for the pivot table

    steve
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-18-2007
    Posts
    21
    i've been sick the past couple days, my apologies for the late reply.

    thanks for the files and help, i will give those a try


+ 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