+ Reply to Thread
Results 1 to 10 of 10

Combine multiple columns of value and get their totals from offset columns to the right

  1. #1
    Forum Contributor
    Join Date
    03-27-2022
    Location
    MS, USA
    MS-Off Ver
    Microsoft 365
    Posts
    143

    Combine multiple columns of value and get their totals from offset columns to the right

    Evening,

    What I am seeking to do is combine columns (T,V,XZ,AB,AD,AF), each one has a column to the right, that as a number (which is a quantity for the column to the left). I am seeking to have a pivot table, in which the items combine like item names get the total based on the qty to be based off the qty columns. I have attached a sample for reference.
    Attached Files Attached Files
    Last edited by Ajaxs87; 06-24-2023 at 05:27 PM.

  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,055

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    You didn't really explain/show what your expected results should look like. So.. a guess. If not SHOW us what you want.


    =WRAPROWS(TOCOL(T2:AG10,3),2)
    Attached Files Attached Files
    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
    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,916

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    I think the OP wants to sum on unique values (like a pivot table). I tried this morning, but I am still struggling to get BYROW and LAMBDA to work for me!
    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.

  4. #4
    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,055

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    maybe yes... in which case:

    =LET(A,T2:AG10,B,WRAPROWS(TOCOL(A,3),2),C,UNIQUE(INDEX(B,,1)),D,MAP(C,LAMBDA(x,SUM(IF(INDEX(B,,1)=x,INDEX(B,,2),0)))),HSTACK(C,D))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-27-2022
    Location
    MS, USA
    MS-Off Ver
    Microsoft 365
    Posts
    143

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    My apologies for the lackluster explanation. Yesterdays workload had my brain on mashed potatoes apparently. I am attaching a workbook, with an explanations sheet to help with explaining. Thank you all for your time and efforts.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    Try this,

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Combine multiple columns of value and get their totals from offset columns to the righ

    just for fun with Power Query and Pivot

    Item Sum of Qty
    5B
    3
    S147
    1
    S573
    1
    SA712
    5
    SA713
    1
    SA734
    1
    Grand Total
    12

  8. #8
    Forum Contributor
    Join Date
    03-27-2022
    Location
    MS, USA
    MS-Off Ver
    Microsoft 365
    Posts
    143

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    Thank you all for your wisdom and knowledge. sandy666, I guess I am going to have to look at the PowerQuery link below that you have.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    Quote Originally Posted by Ajaxs87 View Post
    I guess I am going to have to look at the PowerQuery link below that you have.
    I highly recommend it

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Combine multiple columns of value and get their totals from offset columns to the righ

    You are welcome.

+ 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. Replies: 3
    Last Post: 03-28-2018, 05:08 PM
  2. [SOLVED] Combine multiple sets of columns into a singe set of columns
    By umchem in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-19-2017, 12:14 PM
  3. Replies: 6
    Last Post: 11-25-2015, 01:01 PM
  4. Macro to combine multiple columns keeping few columns specific
    By lramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 12:44 PM
  5. Replies: 0
    Last Post: 07-31-2006, 12:13 PM
  6. Sub Totals with multiple rows and columns
    By Himansu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2005, 06:20 PM
  7. Sub Totals with multiple rows and columns
    By Himansu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2005, 06:17 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