+ Reply to Thread
Results 1 to 2 of 2

Pivot table, sum value next column

  1. #1
    Registered User
    Join Date
    08-03-2020
    Location
    NL
    MS-Off Ver
    2016
    Posts
    1

    Post Pivot table, sum value next column

    Hi all,

    For the company I work for, I regularly come across the table format below. This format is hard to work with, I have manually changed the format a couple of times but I'm getting more and more questions were I need to check these tables.
    These Excel sheets are updated from a database via an sql connection in Excel.

    In these tables every row is a production order, then there are multiple columns which first state the compound that has been added and then the amount. On a row a compound can be added multiple times, a single production can be split into multiple rows but these are not always below each other.

    For example:
    production Compound1 Weight1 Compound2 Weight2 Compound3 Weight3
    aa A 100 B 30
    bb B 60 B 60 C 10
    aa A 10 B 3
    cc C 50 A 50

    It would really help if Excel could add up the same production to the same row and add up if 1 compound is added in steps, resulting in:
    A B C
    aa 110 33 0
    bb 0 120 10
    cc 50 0 50

    This looks to me similar to a pivot table, but I would need a sum of values in the next column. So sort the first table on column B, D and F but show the sum of column C, E, and G.
    Does someone know how to do this in a pivot table? If not, do you know a easy way to this in another way?

    Looking forward to your reply's
    Daniel

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot table, sum value next column

    @DDanielV

    Welcome to the excel forum.

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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: 4
    Last Post: 07-01-2020, 02:13 AM
  2. [SOLVED] Columnar Table to Pivot Friendly Table using VBA (with column data repetition)
    By DizerX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2019, 04:25 AM
  3. Replies: 6
    Last Post: 01-24-2017, 06:56 PM
  4. Format a pivot table based on values of a pivot column
    By chytechplus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 06:32 AM
  5. Changing a pivot chart column color based on the pivot table category
    By Shawne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2014, 09:12 AM
  6. Replies: 11
    Last Post: 07-18-2013, 05:14 PM

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