+ Reply to Thread
Results 1 to 3 of 3

Counting references in a pivot table once

  1. #1
    Registered User
    Join Date
    03-12-2004
    Posts
    65

    Counting references in a pivot table once

    Hello,

    I have a table which shows a list of invoices and the amounts of each invoice along with the job reference that each invoice relates to. In any given month there can be multiple invoices which relate to the same job reference.

    I want to create two pivot tables. The first shows the amount invoiced in each month related to the job reference - easy

    The second I want to show the number of job references in each month, however I can't use count because if the job reference appears multiple times, it will be counted multiple times. I only want to count each reference once when it appears in the month.

    Any ideas how to do that? I've tried all the value field settings and none of them do what I need

    Thanks

  2. #2
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: Counting references in a pivot table once

    Can you upload sample of your sheet

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Counting references in a pivot table once

    My thought is to add a column to the source data.
    Let's say that the job references are in column C, the formula that populates the added column might read: =IF(COUNTIF(C$2:C2,C2)=1,1,0)
    When you set up the second pivot table you would use the job references as the row labels and drag the heading for the added column into the values area.
    If this isn't helpful then, as shj2922 suggested, please upload a sample.
    To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    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. Structured references for Pivot Table?
    By Cam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2015, 01:33 AM
  2. Replies: 12
    Last Post: 08-23-2012, 08:16 AM
  3. controlling pivot table with cell references
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2010, 05:07 AM
  4. references to cells in pivot table
    By jmhultin in forum Excel General
    Replies: 0
    Last Post: 06-05-2010, 05:20 PM
  5. Pivot Table and Cell References??
    By gillyd in forum Excel General
    Replies: 0
    Last Post: 10-02-2006, 03:56 AM
  6. Counting discrete references in pivot tables
    By kosciosco in forum Excel General
    Replies: 2
    Last Post: 08-24-2006, 11:12 AM
  7. [SOLVED] Cleaning pivot table links and references
    By Botinha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2005, 09:06 AM

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