+ Reply to Thread
Results 1 to 6 of 6

Colum totals based on ID and Pivot Table assistance

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Colum totals based on ID and Pivot Table assistance

    Hi,

    What I’m trying to do is add the totals in columns D, E & F which are assciated to the ID in column A.

    As you will appreciate each ID in column A may have 1 or more rows of data in columns D, E & F so ideally I would like the totals in colum G i.e. on the same row as the ID – see attached file

    In addition could any one advise me of how to set-up the pivout table which I have manually created on the Pivot Table Required tab

    Any assistance would be gratel appreciated

    Many thanks in advance


    Rob
    N.B. Excel version 2007
    Attached Files Attached Files
    Rob

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Colum totals based on ID and Pivot Table assistance

    What you're saying doesn't match what you're showing us.

    You don't have the sum of everything with the same ID as in column A, you summed up everything with the same color formatting, which has like one of each copy of the stuff in column A.

    Is that what's driving these "1519", "2163", and "4371" numbers? I think those numbers implicitly correspond to those colors but that's a guess.

    Anyway, to create the pivot table:
    Select the data table you're working on, click "insert pivot table", and then "ID" as the "Row Label", and insert the three different Prices in the "Values" field and make sure they're all set to "Sum of". Then go over to "Pivot Table: Design" and set the "Grand Totals" to "Rows Only."

    Assuming you sort out the ID vs. COP Number thing, that should get you about 95% of the way to the Pivot Table you want.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Colum totals based on ID and Pivot Table assistance

    Select column A then click on Find and Select and choose Blanks. Click OK. Immediately hit the = key then the UP arrow and Ctrl + Enter. This will fill column A with the values required for the Pivot table.

    Create the Pivot table.....result shown in this workbook.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Colum totals based on ID and Pivot Table assistance

    ben_hensel

    Many thanks for your prompr reply and sorry to be so vague so here goes again..

    The formula should look at colum ID for the first ID e.g. 1519 and the add up all the corresponding data in columns D, E & F so in this case all the all the data in columns D, E & F until it finds the next ID e.g. 2163.

    The totals for each ID should then be input into the corresponding cell against the ID in column G

    Hope this helps

    Rob

  5. #5
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Colum totals based on ID and Pivot Table assistance

    newdoverman

    Many thanks for your prompt reply and example of the pivot table... I think I was going wrong as the ID only appeared once in column A (in my example) where as your example shows it should be copied down each relevant row until the next ID appears.

    Thanks again

    Rob

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Colum totals based on ID and Pivot Table assistance

    The Pivot table and calculations based on the values in the first column require that each row of data have all the relevant data. In other words it has to be a "Proper Data Set" of one row per record and one column per field...preferably without blanks and when it comes to crucial fields like record ID's ...no blanks.

+ 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] running totals in Pivot Table - removing a user from the totals for the current week
    By eisenbergg in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 09-08-2013, 04:39 PM
  2. Pivot Table Assistance
    By drewmann in forum Excel General
    Replies: 1
    Last Post: 03-28-2012, 09:50 AM
  3. Pivot table colum width
    By LouP in forum Excel General
    Replies: 4
    Last Post: 11-27-2006, 02:55 PM
  4. [SOLVED] Need Assistance With Pivot Table Please
    By Glenn E. White in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2005, 08:05 PM
  5. [SOLVED] Pivot table assistance
    By Deb in forum Excel General
    Replies: 3
    Last Post: 04-22-2005, 03:06 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