Results 1 to 7 of 7

Read data in one table, then distribute and sum it in another table

Threaded View

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Burnaby, BC
    MS-Off Ver
    Excel 2010
    Posts
    29

    Read data in one table, then distribute and sum it in another table

    Hello -

    I'm not an Excel power user. I need a formula or VBA strategy to progressively go through departmental vacation entries in one table (start dates and end dates), and incrementally transfer and sum it by week and dept into another table in a different sheet. I have written VBA code to generate the 2 sheets contained in my simplified example file. Now I want to translate all the table entries in the "Data" sheet t to the table in the "Summary" sheet, organized by "Week Of" and "Department". Not sure if I need VBA or not. A big issue is that I'm not sure how to represent/account for the weeks between the start week and end week, since they are not explicitly given in the first table. It seems like I need to use loops, but that could get ugly and slow if I have to do it cell by cell for the table in the "Summary" sheet. Is there a more elegant approach, like using arrays? I'm not super familiar with arrays, so if that's a good choice a brief rationale for using them would be appreciated.

    Ultimately I will read data from the resulting table to another workbook, where week by week dept headcount analysis takes place, so I want to represent all weeks between the first and last weeks in the table, even if they contain zeroes.

    Thanks in advance for your help!

    PWM
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup/Match - Read Data from 1 table using a value from another
    By oblah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-17-2017, 12:11 PM
  2. Distribute data from Single entry table to Multiple Workbooks
    By noront in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-07-2016, 09:46 AM
  3. Drop down box to read data from a table?
    By d3ell in forum Excel General
    Replies: 3
    Last Post: 01-20-2012, 10:49 PM
  4. Replies: 4
    Last Post: 11-10-2011, 04:43 AM
  5. Excel 2007 : How to Read RSS/XML into Data Table?
    By ice1000 in forum Excel General
    Replies: 0
    Last Post: 06-25-2011, 07:10 PM
  6. Help with userform (trying to read data from table into combo list)
    By EK1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2010, 10:18 AM
  7. Replies: 1
    Last Post: 02-19-2009, 03:00 AM

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