+ Reply to Thread
Results 1 to 14 of 14

Generate a single report from multiple spreadsheets in one workbook

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Generate a single report from multiple spreadsheets in one workbook

    Hello to all,
    I have 24 sheets as part of my Workbook.

    I need to extract a "report" that summarizes the following information:
    The text information in column A1 of all the sheets, the date from the LAST entry in column E from all the sheets, and the numerical (dollars) data from the LAST entry in column F from all the sheets.
    I would need to have the final result appear as three columns with each column showing the data as described above from all of the 24 sheets.
    Can someone please show me how a macro could be constructed to perform that task?
    Thank you.
    Regards.

  2. #2
    Registered User
    Join Date
    08-08-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Generate a single report from multiple spreadsheets in one workbook

    Could you upload a sample file

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook -FILE ATTACHED

    Hello again,
    Attached is the spreadsheet as you requested.
    I sincerely appreciate you taking the time to assist me.
    The data is just bogus information but it makes the request clearer.

    I'd need to generate a report that:
    • Shows the name as shown in cell A1 (it is text)
    • Shows the LAST (most recent) entry is column E (it is a date)
    • Shows the LAST (most recent) entry in column F (it is a dollar amount)

    The final report needs to look something like this:

    NAME DUE DATE MIN AMOUNT DUE
    Blaze - Account#9129 9/22/12 $50.00
    Capital - Account#4388 9/24/12 $75.00
    ..etc...etc...etc...from all sheets in the workbook.

    Thank you again!
    Regards.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-08-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Generate a single report from multiple spreadsheets in one workbook -FILE ATTACHED

    Hi...try running the macro (MAIN_SHEET) in the enclosed file. Please note that I have had to remove characters/spaces from the names of the sheets otherwise INDIRECT formula was returning errors. If you choose to use this file, you will need to keep the sheet names clear of any spaces or characters.

    If you are happy with the solution, kindly mark the thread solved saving the moderators some effort.

    Thanks
    Attached Files Attached Files
    Last edited by Ashali; 09-10-2012 at 07:47 AM.

  5. #5
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook - SOLVED

    Quote Originally Posted by Ashali View Post
    Hi...try running the macro (MAIN_SHEET) in the enclosed file.................

    If you are happy with the solution, kindly mark the thread solved saving the moderators some effort.

    Thanks
    Happy with the solution!!?
    I'm absolutely impressed!

    EDIT: But it appears that I have made an error in describing my needs.
    Unfortunately it is I who did not know exactly what I really needed .

    I need to have the macro give me the results for the last ROW that contains data in columns E and F.
    Currently is seems that the current code gives me the summary data from columns E and F for row 11 only, and does not pick up any data that is added to the sheets after that row.
    These spreadsheets are intended to be an ongoing record of the credit card situation and, therefore, additional rows of payment dates and min amounts will be added very frequently.
    The final idea of the macro is to summarize the account with the LATEST due date and LATEST minimum payment for each.
    Is there anyway you can modify your work to reflect that need?
    My apologies for my poor requirement description.
    Thank you again.
    Last edited by omicron; 09-10-2012 at 01:53 PM. Reason: My requirements were explained incorrectly -Not SOLVED due to my poor explanation

  6. #6
    Registered User
    Join Date
    08-08-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hi, the way the code works is that for every sheet, it scrolls through column J to assess how many active rows there are and assigns the last active row in the set of data based on that. Are there empty cells in column J within the data range?!

  7. #7
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hello,
    Yes to your question regarding column J.

    The reason for this is as follows:
    Data entered in column G is what triggers the result in columns I and J.
    However, entering information in columns E and F may take place weeks before data is entered in column G.
    The reason data is in columns E and F is to act as a reminder that there are scheduled bills to be paid.
    When the scheduled dates get close, THEN the bill is paid and data is finally entered in column G and, therefore, column J then gets its data.

    The idea of the summary report that you have written is so the user can run it at anytime as see what bills are pending (not yet paid).
    Therefore, there will regularly be data in columns E and F but no data in column G (and therefore, no data in column J).

    Whee. I sure hope that was clear.
    I'm sorry to be causing you so much work and effort.
    I appreciate you still taking an interest in my request.
    Thank you again.

  8. #8
    Registered User
    Join Date
    08-08-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hi,
    Changed the code a little bit. Should do the trick. Could you test the enclosed file and let me know if it works
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hi,
    Yes. It appears to function as I described it you.
    I'm amazed that you were able to follow my convoluted logic.
    I only tested a few sheets and a couple of cells but all looked correct.
    It is 3:40am here in New Jersey and I have a meeting in 3 1/2 hours so I must get some sleep.
    I'll go through it completely tomorrow and report back to you.
    Thank you gain!
    Your patience is amazing
    Regards.

  10. #10
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hi,
    Yes. It appears to function as I described it you.
    I'm amazed that you were able to follow my convoluted logic.
    I only tested a few sheets and a couple of cells but all looked correct.
    It is 3:40am here in New Jersey and I have a meeting in 3 1/2 hours so I must get some sleep.
    I'll go through it completely tomorrow and report back to you.
    Thank you gain!
    Your patience is amazing
    Regards.

  11. #11
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook

    Hello,
    I've tested the new code you sent and all seems to function as I had requested.
    I will send it on to my family member who needs this type of tracking system.
    My thanks to you for your time, effort and expertise.

    I hope you'll be available in the future when I get into trouble again!
    Regards and thank you again.

  12. #12
    Registered User
    Join Date
    08-08-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Generate a single report from multiple spreadsheets in one workbook

    My pleasure

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Generate a single report from multiple spreadsheets in one workbook

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    I have done it for you this time.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  14. #14
    Registered User
    Join Date
    06-29-2012
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Generate a single report from multiple spreadsheets in one workbook

    Thank you.
    I was unsure how that was done.
    I'll remember it for the future.
    REgards.

+ 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