+ Reply to Thread
Results 1 to 4 of 4

How to auto generate Data from one Workbook to another? Unique Identifier?

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    2

    How to auto generate Data from one Workbook to another? Unique Identifier?

    Hi,
    Time
    I was wondering if anyone would know how I could go about doing this? I have two different spreadsheets which are automatically generated from external systems I receive each week, I need to move values from one to the other. I am moving hours worked from one sheet to another the problem being that one person can have multiple entries because each time entry is claimed against a work item.

    For example my data could look like this

    Name Hours Item Date
    Joe 1 5 AAA Oct 1st
    Joe 1 10 AAA Oct 8th
    Joe 1 2.5 AAA Oct 1st
    Joe 1 20 BBB Oct 1st

    What I am trying to do is take that data and place it into a second sheet where the hours would be accumulated for each Person, Date, Work Item

    So based on the data above I would want a script I could run that would take the data from above and insert it into my second workbook where every entry for each user would accumulate the hours entered for each date and work item.

    So it would take the data above and accumulate the entries that have the same date and Item into one entry on the new workbook, (The second workbook is used on an ongoing basis so it already has pre-existing entries.) So ideally I would like the formula to adjust the fields in this workbook if they match the time entries from workbook 1. So it would take all of the data from Workbook 1 and accumulate all the values for each name that has a corresponding Item and Date.

    So it would accumulate the data above to take both line 1 and line 3 add them together and insert that new value into the second workbook where the name item and date matches.

    Hopefully you can make sense of what I am asking.

    If anyone can recommend a way of doing this that would be great I am semi familiar with excel but I have not done a lot with automating spreadsheets or linking workbooks together.

    Again any information you could provide me would be greatly appreciated as it would reduce a lot of manual time entry, where I have to go one by one and enter this data manually row by row for about 100 employees.

    Thanks.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: How to auto generate Data from one Workbook to another? Unique Identifier?

    Here's a suggestion that wouldn't require any VBA code. Let's say your data is in Book1.xlsx, Sheet1, and your summary is in Book2.xlsx, Sheet1.

    In Book1, if your names are in column A and Items in column C starting in row 2, in an available column, add the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to combine the name and item, and drag it down. Select that column and name it NameItems. Select the Hours column and name it NameItemHrs.

    In Book2 in an available column (let's say E), enter the same formula as above to concatenate the names and items from the appropriate columns on that sheet, and drag it down. Then in the cell where you want the accumulated hours (assuming your also starting in row 2), enter the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It should give you a sum of all the hours in Book1 with a NameItem matching that in E2. Drag it down for the other Name-Item summaries.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    2

    Re: How to auto generate Data from one Workbook to another? Unique Identifier?

    Thanks for the response.

    I am not sure if that would work as I need it to sort by date as well, so for each week it would have to take the data from the first workbook and divide it into the corresponding weeks (by date). and enter it. I have more rows and columns on my sheets than I used in my example as the remainder of the workbooks are just calculated fields based on these entries.

    Thanks.

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: How to auto generate Data from one Workbook to another? Unique Identifier?

    My example only included name and item, but it could easily be expanded to include day, week, or any other criteria needed.

+ 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] I have a workbook that I need to auto generate a unique daily 6 digit key number at the pr
    By harry h in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-16-2014, 07:48 AM
  2. Merging data using unique column identifier?
    By jjinca in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 05-14-2013, 07:55 AM
  3. Adding Unique Identifier to Rows of data
    By adam_w2009 in forum Excel General
    Replies: 13
    Last Post: 04-21-2013, 06:37 AM
  4. Auto Generate a Unique Identifier
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2012, 10:46 AM
  5. Combine Unique data for Same Identifier
    By Excel Noobie in forum Excel General
    Replies: 4
    Last Post: 10-12-2006, 08:14 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