Closed Thread
Results 1 to 4 of 4

lookup and create summary sheet from data in existing workbook using vba

  1. #1
    Registered User
    Join Date
    02-15-2010
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    lookup and create summary sheet from data in existing workbook using vba

    Code/Help required on Excel VBA
    I have an automatically generated workbook which forms part of a bill of materials which is generated from within an autocad drawing via vba. (see sample attached). This is only a small sample as some of these worksheets can contain many more rows of data. (Note the first 9 rows of the worksheet are auto filled by the same vba macro in Autocad to show project information from the drawing titleblock)
    What i would like to do via vba is as follows
    for every instance of 1,2,3,4 etc in column B i would like to automatically sum the corresponding values in column H.
    Columns J,K,M,L & O are part numbers and for each pour number (1,2,3 etc) i would like to be able to sum the number of different items required. Note the Part numbers will vary on a pour by pour basis.

    I suspect a separate summary sheet would be the best option showing the same project information on the top 9 rows then going into detail with the summary information for each Pour Number in the sheet BOM. I have created a basic example of what it could look like on the summary worksheet in the attached file.

    I am not very experienced and have not used excel a lot in the past so would appreciate help in finalising my project. If anyone has some code they are willing to share it would be greatly appreciated. I am specifically wanting to use vba so that i can process the data to create my summary worksheet through my existing code

    Regards John B
    Attached Files Attached Files
    Last edited by John Bortoli; 03-10-2010 at 10:41 PM. Reason: poor title, uploaded revised sample.xls to reflect requirements

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA code help

    Please take a few minutes to reread the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

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

    Re: lookup and create summary sheet from data in existing workbook using vba

    Hi

    Can you update your example file to reflect the actual values for the example data. It is a bit hard to really appreciate what you want done if you don't explicitly detail where the counts come from and don't have output that relates to the data.

    rylo

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lookup and create summary sheet from data in existing workbook using vba

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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