+ Reply to Thread
Results 1 to 3 of 3

Search for a file and bring back data to a master workbook – PART 2

  1. #1
    Registered User
    Join Date
    05-22-2008
    Location
    Austin, TX
    Posts
    16

    Search for a file and bring back data to a master workbook – PART 2

    Hi All,

    I previously had a problem that was solved with the wonderful help of Greg M, a valued forum contributor. He has been on vacation and may be too busy to help me, and I don't want to keep bugging him. Here is a link to that thread to help with background info:

    http://www.excelforum.com/showthread...=645094&page=2

    I am trying to retrieve data from many "Job cost" workbooks to a master "Job Cost Summary" workbook. The problem is that the data I am trying to retrieve is almost always in defferent cells. However, there are some consistencies that I outlined in the link above, but will repeat here:

    1. The data will always be found in the range B2:K25.

    2. The Descriptions are always in column B and they are always in the same order from top to bottom starting in row 8.
    ***But they change rows based on what type of cost is entered on that job. For example, "Fabrication Labor" then "Erection Labor" then "Materials" will be in rows 8, 9, and 10 respectively. But if there is no "Erection Labor" on the next job, "Materials will move up to row 9.

    (my thought on this is a code/formula that searches column B for a Description, if can't find it then Data=0, if it finds it begin searching that row for the data)

    3. Regarding the columns where the data is stored, again the order is always the same from left to right staring with Description in column B, then comes Material Wt, Man Hours and Actual Cost.
    ***But, Material Wt, Labor Hours and Actual Cost are never in consistent columns, and they will not necessarily be nest to each other. The only consistency is that Actual Cost will be to the right of Material Wt and Labour Hours. AND, there are only two data entries per description: Material Wt and Actual Cost OR Man Hours and Actual Cost.

    (continuing my thought above, search the row from left to right from C to K for the first non-zero value and that will be the Material Wt or the Man Hours, then search from right to left from K to C and the first non-zero value will be the Actual Cost)

    I feel like if I can think it through, it can be written???

    I am attaching some actual Job Cost files and the Job Cost Summary, which already contains the VBA code to retrieve bid data (module 1) which works beautifully (thanks again Greg M). I attempted to start the code to retrieve the cost data (module 2) but ran into the problems above.

    Thanks,
    Natasha
    Last edited by Simon Lloyd; 06-06-2008 at 10:25 AM.

  2. #2
    Registered User
    Join Date
    05-22-2008
    Location
    Austin, TX
    Posts
    16
    And here are the Job Cost files - had to post seperately.....

    Attachment 23362

    Attachment 23363
    Attached Files Attached Files
    Last edited by Simon Lloyd; 06-06-2008 at 10:30 AM.

  3. #3
    Registered User
    Join Date
    05-22-2008
    Location
    Austin, TX
    Posts
    16
    Hmm, trying again to upload the job cost files...

    4754.xls

    4844.xls

+ 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. Adding Up $ Values Based On Criteria In Other Cells
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2007, 05:41 PM
  2. Can Excel vary a value for me automatically and produce a chart?
    By pud1m in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-05-2007, 11:51 AM
  3. Macro Trouble on T tests. 1600 test to do.
    By gjmcleod in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2007, 06:20 PM
  4. Change decimal places based on selection of the test
    By fijian in forum Excel General
    Replies: 5
    Last Post: 07-02-2007, 09:51 PM
  5. Replies: 2
    Last Post: 11-04-2006, 05:59 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