+ Reply to Thread
Results 1 to 6 of 6

Combine, lookup and insert data

  1. #1
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Combine, lookup and insert data

    Its a big one, so this is only if you are bored...I will get it myself eventually.
    Or just some rough advice would be cool.

    OK seems to me like we are doing the same thing over and over, but thats what the man wants, so thats what he gets!


    I am doing the WORKINGS sheet in the attached workbook.

    First I need to combine the week totals on the VOLUME sheet for each product.
    (the weeks to be added are input in WORKINGS sheet D4 & D5)

    Each product is made up of a "casting" and a "backing plate" and sometimes other components too.
    I need to look up the products using the PRODUCT LIST sheet to make a list of total components required (some products use the same components).
    Column A is the product, G is the casting, I is the backing plate, then also K to P which also have qunatities.

    Then combine similar components, adding the totals (if not already done).

    Then put them into the correct row of the WORKINGS sheet (column E).
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Put the code below in a general module, select the workings sheet, and run.

    It uses the blank columns A and B during processing, so these will have to remain unused.

    rylo


    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Smile

    You never cease to amaze me!

    Thanks mate.



    It had problems with the subheadings like BACKING PLATES in column C so I just took them out, no worries.
    It also deleted the column header in E so I just added that back again after.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Interesting. I used the sample file you put up, and worked with that structure / data. The column C headings were accommodated (it didn't process these) and it didn't remove headings from column E.

    Did you try it on the file that you put up as a sample?


    rylo

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Auggh..

    Just realised.

    1) I ran this with sample data so the delete will have taken out part of the heading when there was no data. Modified for this.

    2) You have to make sure the headings on Product List exactly match the headings in column C. I forgot to mention that...

    Please Login or Register  to view this content.
    rylo

  6. #6
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144
    No problem.
    Thanks again.

+ 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