+ Reply to Thread
Results 1 to 12 of 12

Formula to create summary from different worksheets

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Formula to create summary from different worksheets

    Hi,

    I am trying to create a summary table from multiple worksheets.
    I have a master worksheet and several other sheets named datewise. I am looking for a formula to create a summary table in the master worksheet by looking up data from these datewise sheets.

    Attached file with desired results.
    I ve heard INDIRECT slows down the sheets ; so preferred solution without INDIRECT

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Formula to create summary from different worksheets

    Have you heard of PowerQuery? If you are using 365, then you have it. Interested?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Yes definitely
    I have 365 but am not that familiar with PQ

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Formula to create summary from different worksheets

    OK - I'll have a look at your sheet.
    better
    One question: could the layout of the master sheet be three tables side-by-side instead of stacked? This would facilitate the solution.

  5. #5
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Yes the layout is flexible and can be changed.
    The only catch is that data is to be analysed weekly over a period of upto 6 months, so we'll have atleast 24 columns (24 worksheets) in each table and then side-by side view would be difficult to comprehend

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,036

    Re: Formula to create summary from different worksheets

    You could put the result tables onto three different worksheets.

    Or you could freeze the columns on the left of the page.

    Hopefully Olly will see this.

  7. #7
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Yes, Its fine.
    Lets wait

  8. #8
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Any leads?

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,021

    Re: Formula to create summary from different worksheets

    Perhaps the following will be of help.
    1. Name all of the tables on the 10Jul19 and 17Jul19 sheet naming them according to zone i.e. zonea_10Jul19
    2. Use the following power query advanced editor code to produce an overall tbl_10Jul19 table (modeled on the 10Jul19 sheet)
    let
        Source = Table.Combine({zonea_10Jul19, zoneb_10Jul19, zonec_10Jul19}),
        #"Added Conditional Column" = Table.AddColumn(Source, "Zone", each if [#"Plot No."] <= 5 then "ZoneA" else if [#"Plot No."] <= 10 then "ZoneB" else "ZoneC"),
        #"Changed Type" = Table.TransformColumnTypes(#"Added Conditional Column",{{"Zone", type text}}),
        #"Added Conditional Column1" = Table.AddColumn(#"Changed Type", "Table", each if [#"Plot No."] >= 1 then #date(2019, 7, 10) else null),
        #"Changed Type1" = Table.TransformColumnTypes(#"Added Conditional Column1",{{"Table", type date}})
    in
        #"Changed Type1"
    3. Use the similar code (select tbl_17Jul19 then edit then advanced editor) to produce the 17Jul19 table
    4. Use the following code to produce a combined table (tbl_combined)
    let
        Source = Table.Combine({tbl_10Jul19, tbl_17Jul19}),
        #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {"Plot No.", "Zone", "Table"}, "Attribute", "Value")
    in
        #"Unpivoted Columns"
    5. Produce a pivot table using the modeled on the desired result sheet. Plot no. and zone are in the row field, table is in the column field and the values are in the value field. The attributes, foundation; MEP and structure are placed in a slicer.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Hi JeteMc thanks for your feedback
    I saw your post only today
    I will test it and get back to you

  11. #11
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: Formula to create summary from different worksheets

    Hi Jetemc,

    This is exactly what I was looking for..
    I will be adding a new sheet every week.
    With the current code, will it automatically get updated in the combined table?

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,021

    Re: Formula to create summary from different worksheets

    Unfortunately no, however perhaps the first part of the linked video will help you set things up.
    https://www.youtube.com/watch?v=jVkWDZ7B-Zs
    Let us know if you have any questions.

+ 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. How to create a 'summary' from other worksheets.
    By Mogipbob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2019, 01:25 PM
  2. Get Sum of each worksheet and then create summary sheet with totals from all worksheets
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2018, 03:41 AM
  3. [SOLVED] Create Summary Page From Multiple Worksheets
    By Drake07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2017, 04:01 PM
  4. Create A Summary sheet from variable worksheets
    By kammariarun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2015, 03:44 PM
  5. VBA Code to Create One Summary worksheet of many worksheets in workbook
    By brandnew22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2014, 06:58 PM
  6. Summary sheet to create multiple worksheets
    By originata in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 05:42 PM
  7. create yearly summary from monthly worksheets
    By Chys in forum Excel General
    Replies: 1
    Last Post: 09-15-2005, 09:54 PM

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