+ Reply to Thread
Results 1 to 14 of 14

Producing a SUM Summary Table

  1. #1
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Question Producing a SUM Summary Table

    Hi, I have a demand matrix with 33 origin zones and 33 destination zones. The data in the table reflects the number of trips from an origin (rows) and a destination (columns).
    My 33 zone system is too complex, so I'll be simplifying it into a 24-zone system. This means some of the old zones will be grouped together to form new, bigger zones.
    I have created a reference table which specifies which of the old 33-zones belong to each of the new 24 zones.
    I want to create a new demand matrix for the new 24-zone system which summarises the movements between (new) zones.
    If a new zone is not composed of old zones, its cells in the demand matrix should be blank.

    Can anyone suggest a formula that will work for this?

    I've provided an example Excel file and a practical example below.

    The new 'Zone 10' is made up of the old '35205', '91004' and '91005' zones. The new 'Zone 8' is made up of the old '33311' and '91016' zones.
    Cell (J49) in the new matrix would tell me how many movements there are from Zone 10 to Zone 8, so this would have to be the sum of all those origin -> destination combinations:
    35205->33311
    35205->91016
    91004->33311
    91004->91016
    91005->33311
    91005->91016

    Any help would be hugely appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Producing a SUM Summary Table

    By any chance... have you upgraded to O365??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: Producing a SUM Summary Table

    Yes I'm working with Microsoft 365

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

    Re: Producing a SUM Summary Table

    Good - please update your forum profile, which says 2016!
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Producing a SUM Summary Table

    Try in C40, copied down and across:

    =LET(zones,BYROW($B$4:$B$35,LAMBDA(row,MAX(IF(row=$AD$40:$AF$63,$AC$40:$AC$63,0)))),SUM(IF((zones=$B40)*(TRANSPOSE(zones)=C$39),$C$4:$AH$35,0)))

  6. #6
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: Producing a SUM Summary Table

    Hi, Unfortunately I'm getting #NAME? error using this.
    Last edited by AliGW; 07-19-2022 at 05:47 AM. Reason: Please DON'T quote unnecessarily!

  7. #7
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Producing a SUM Summary Table

    Are you sure you have 365? Does it work in the attached?
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Producing a SUM Summary Table

    BYROW is only available on the beta channel - could be that, Nick.

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Producing a SUM Summary Table

    Not sure that's correct Ali as I didn't think I was on the beta channel - I don't have things like VSTACK and TEXTSPLIT that you do but I do have LAMBDA and BYROW.

    Though I don't know if you can get a version of 365 and not keep it updated? As was only a few months ago that I got them I think.

  10. #10
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: Producing a SUM Summary Table

    When i open this, I see all the right values, but with a Security Warning that automatic update of links have been disabled. If I enable content, the table goes back to #NAME?

    My version of Excel (under Subscription Product) is Microsoft 365 Apps for enterprise. My version doesn't recognise BYROW (nor VSTACK or TEXTSPLIT)
    Last edited by aurelien_21; 07-19-2022 at 06:06 AM.

  11. #11
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: Producing a SUM Summary Table

    My version of Excel doesn't recognise BYROW (nor VSTACK or TEXTSPLIT)

  12. #12
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Producing a SUM Summary Table

    I'd be interested to know when it was last updated...but anyway here is an alternative version without using BYROW:

    =SUM(IFERROR(INDEX($C$4:$AH$35,MATCH(INDEX($AD$40:$AF$63,$B40,0),$B$4:$B$35,0),TRANSPOSE(MATCH(INDEX($AD$40:$AF$63,C$39,0),$C$3:$AH$3,0))),0))

  13. #13
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: Producing a SUM Summary Table

    Excellent, this works a charm. Thanks very much for all your help Nick, I'd not thought to use INDEX within the MATCHes.
    FYI my version is Version 2108 last updated May 2022

  14. #14
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Producing a SUM Summary Table

    Sounds like the Enterprise semi-annual release channel.
    Rory

+ 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. Sensitivity Table not producing the right figures for a DCF model
    By doesitmeta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2022, 10:01 PM
  2. [SOLVED] VLookup producing incorrect table
    By Marvo in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 02-16-2021, 12:02 PM
  3. Pivot table is producing crazy percentages!
    By taylorsm in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 07-16-2016, 06:04 AM
  4. New member - Analysing Several Worksheets and Producing Summary Report
    By neilsmalcolm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2014, 03:36 AM
  5. Producing a table of unique values.
    By Kleinstein in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-10-2014, 11:14 PM
  6. Help - producing table with same fields along x and y axis
    By help_i_cant_excel in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-03-2013, 07:09 AM

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