+ Reply to Thread
Results 1 to 5 of 5

Record Macro to populate a cell in column G with the data found in A5 for each row/repeat

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Metairie, LA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Exclamation Record Macro to populate a cell in column G with the data found in A5 for each row/repeat

    I have several excel workbooks each with at least three worksheets in them that are in report format. Ultimately, I need to extract/merge all of the core data found between the header row and the total row into a new workbook.
    To begin I need to include the account number which is within the A5 cell of each worksheet. I can record a macro that extracts just the Account # itself and puts it in column G at the end of the first row of core data. I want to repeat this process for all rows until a blank row is reached. Then I need it to automatically do the same for the remaining sheets in the workbook.

    Again, my ultimate goal is to have a "table" of core data to be imported into Access for reporting purposes. I receive it with a report header, several lines with company name and address information, etc. I need only the content line items, the tab names and again, the account number from the cell found in the upper portion of the worksheets.

    If there is an easier way to accomplish my overall goal I would very much welcome your input. I can work magic once I have the data in Access. But getting the raw data from so many worksheets is proving difficult.

    I get these spreadsheets monthly by the way and will have to run this process monthly to update my table.

    Thanks in advance.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Record Macro to populate a cell in column G with the data found in A5 for each row/rep

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    Metairie, LA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Record Macro to populate a cell in column G with the data found in A5 for each row/rep

    I have attached two files - the data in red is what I need to capture to a table.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    Metairie, LA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Record Macro to populate a cell in column G with the data found in A5 for each row/rep

    Also, part of my issue is that the files are not formatted consistently as the data doesn't necessarily begin on the same row in each file.

  5. #5
    Registered User
    Join Date
    04-04-2012
    Location
    Metairie, LA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Record Macro to populate a cell in column G with the data found in A5 for each row/rep

    2013 COMMISSIONS.xlsThis is what I need it to look like afterward.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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