Create A summary Page

  • Hi All


    I am trying to create a summary sheet based on the total of various sheets in a workbook.


    Eg: Sheet 1 the word total will appear in A400 Corresponding with A400 will be amounts totaled per ageing list
    Sheet 2 the word total will appear in A74 Corresponding with A74 will be amounts totaled per ageing list


    The names of the sheets differ. I have found some code that works partially, however it has specific cell referencing which means that it copies random information from the sheets. I want it to create a new sheet, in A it must copy the source sheet name, in B it must copy the total ageing for that sheet.
    The row of the data will change however the columns remain fixed The ageing appears from column G:L


    The macro must find the word "Total" in column A and copy the corresponding cells G:L to the summary sheet into columns C:H



  • Re: Create A summary Page


    is the total row has sum of the aged columns if yes try this


  • Re: Create A summary Page


    Hi Ashu1990


    Thanks for the code. The Age Totals are in the same row as the word Total.


    I tried this code, it creates a new sheet labeled Summary and places the text Sheet Name in A1 and Total in B1.


    Sorry but it does not seem to work.


    Regards
    Derryn

  • Re: Create A summary Page


    Hi Ashu1990


    Attached is my workbook. I need the macro to:


    1. Create a new Sheet and label it Summary
    2. Search all other sheets for Total Per Age
    3. Copy Total Per Age into Summary Sheet A1
    4. Copy the source sheet name to Summary Sheet B1
    5. Copy value from Column G to C1, H to D1, I to E1 etc


    Your assistance is highly appreciated.


    Thanks
    Derryn

  • Re: Create A summary Page


    You are using Excel 2007 or later so it would be much easier to format the data as Excel Tables. This would then make the coding simpler.


    Edit: designing the data layout better would probably allow you to use a PivotTable

  • Re: Create A summary Page


    Hi Roy


    I know this may sound archaic but I am unable to change the layout of this document due to the legislative prescripts that govern the way we report to our government heads.


    I am therefore forced to find a way to produce the required end product.


    Thanks
    Derryn

  • Re: Create A summary Page


    See if this is kind of what you are after.

  • Re: Create A summary Page


    Hi Jindon


    Thanks for submitting the code.


    The code works for the most part. I have found that for some reason it only runs until row 138, so say the total appears on row 145 it does not pick up the total of 10 000 but rather the individual value of row 138. I figure that because the total appears on Row 138 on very first worksheet the code assumes that row 138 is the last line on each worksheet. If the worksheet has fewer rows than 138 it imports the total without problems but if the total appears below row 138 it imports the value from row 138.


    It also creates new blank sheets 110 times which I don't need.



    Thanks


    Derryn

  • Re: Create A summary Page


    Hi Jindon


    All the worksheets are in the same file(workbook)


    I have attached a sample of a few worksheets to illustrate what happens after running the macro. I values which are in green should appear, the ones in red are the values from row 138.


    Thanks, I hope I'm making some sense.


    Regards
    Derryn

  • Re: Create A summary Page


    Hi Jindon


    Sorry I think when I captured the code I missed a line or something because I copies it and pasted and it worked.


    Thanks for the invaluable assistance.


    Regards
    Derryn

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!