+ Reply to Thread
Results 1 to 1 of 1

VBA Data Extract

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Data Extract

    Hi, I wonder whether someone may be able to help me please.

    I was very fortunate to receive some help from @AB33 in putting together the script below:

    Please Login or Register  to view this content.
    The script looks at column E of the 'Source' ("AllData") sheet for two values, either "Enhancements" or "DIR". When it finds these, it then creates a unique distinct list and copies the data to column B of the applicable 'Destination' sheet (either "Enhancements" or "Direct Activities").

    In addition it sums a 'Manhour' figure from column I of the 'Source' sheet and places this under the relevant monthly column heading in the 'Destination' sheet.

    I'm now hoping that I may be able to change this a little by inserting two extra columns (C and D) to the 'Destination' sheets. Column C will now become the ID number and pulls the data from column F on the 'Source' sheet, and Column D will become the 'LOB' which pulls the data from column B on the 'Source' sheet. The current "Monthly" columns will then shift 2 columns to the right.

    The code works perfectly, but I'm relatively new to VB, and although I understand some, I don't understand all of the code.

    I've spent a few days on this, but I've not been able to find a solution. I just wondered whether someone may be able to look at this please and offer some guidance on how I may go about achieving this. If at all possible, and I hope this doesn't sound too presumptuous, but if someone could help me, could they please insert some comments into the code, because I'm keen to learn.

    I appreciate that my explanation may not be particularly clear, so please find a link to my file here https://www.dropbox.com/s/2u6dvht11m...0-%20Home.xlsm. If you could please click on the button on the "Macros" page, it will extract the data to the "Enhancements" and "Direct Activities" sheets.

    I have also included another sheet which is the proposed new layout.

    Many thanks and kind regards
    Last edited by hobbiton73; 08-22-2013 at 02:09 AM.

+ 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] How to Extract Data from Multiple Files in Same Folder and Copy Data to One File
    By champ052005 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 01:25 PM
  2. Find and extract specific text data & accompanying numerical data
    By gabrielemucho in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-18-2013, 05:58 PM
  3. Need to check for new entries in the Data base and extract corresponding data
    By retrospikz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 07:46 AM
  4. Replies: 11
    Last Post: 12-04-2012, 02:56 AM
  5. [SOLVED] Extract data that meets specific condition from large raw data
    By tekobayashi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2012, 03:50 AM

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