+ Reply to Thread
Results 1 to 4 of 4

Sum of multiple rows into one row

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2505 Build 16.0.18827.20102 64-bit
    Posts
    39

    Sum of multiple rows into one row

    Hello all, I have set up an import template to upload journal entries into our accounting system. I used Power Query and have it close to what is in the How it should look tab but need some help in summarizing specific rows using Column F in my PQ Table. For example, for June 17th I would like one row to show the sum of all the rows that have 630 and one row that shows the sum of all the rows that have 375 but keep the rows that have 523 listed individually as I need to show the different journalItemLine_memo for each. Also, since each day would be its own entry, I may also need help on how I can add the tranId column (Column A) in the How it should look tab to do sequential numbering for each date but since the transactions per day vary not sure how I can make it work. Thank you!

    Sample.xlsx
    Last edited by Bleucherie; 06-24-2024 at 05:58 PM.

  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. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,434

    Re: Sum of multiple rows into one row

    I had a look and don't understand the logic of what you want at all or where the extra columns are coming from.

    It would help if you could fully explain, for example, the data for 17 June and the logic of its transformation from Table1 to how you want it to look.
    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
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2505 Build 16.0.18827.20102 64-bit
    Posts
    39

    Re: Sum of multiple rows into one row

    Quote Originally Posted by AliGW View Post
    I had a look and don't understand the logic of what you want at all or where the extra columns are coming from.

    It would help if you could fully explain, for example, the data for 17 June and the logic of its transformation from Table1 to how you want it to look.
    Hello AliGW,

    I have updated my post and attached an updated file to be clearer on my ask. Hopefully it makes sense. Thank you.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,462

    Re: Sum of multiple rows into one row

    This was as close as I could get to what you wanted.
    Added two columns to Table1
    1. Transaction Id: =IF(A2<>A1,"062124JE RS Upload"&TEXT(NETWORKDAYS(A$2,A2),"000"),K1)
    2. Batch: ="organization"
    Added to the M-Code:
    Please Login or Register  to view this content.
    Produced a pivot table in which I collapsed the account references for 630 and 375 while leaving those for 523 expanded.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] SUMPRODUCT (sum range has multiple rows & columns, and criteria is across multiple rows &
    By 77highland in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2024, 07:46 AM
  2. Replies: 2
    Last Post: 03-23-2022, 03:50 PM
  3. [SOLVED] Transpose multiple rows information to single rows and keep only one rows
    By sanjay.k in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-14-2021, 09:06 AM
  4. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  5. Multiple ccolums/rows to get data from multiple columns/rows (vlookup)
    By Ramzes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 05:35 AM
  6. Replies: 1
    Last Post: 05-18-2009, 11:21 AM
  7. Replies: 1
    Last Post: 03-18-2009, 04:18 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