+ Reply to Thread
Results 1 to 5 of 5

Count in a calculated field (Pivot Table)

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Sćo Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Count in a calculated field (Pivot Table)

    Hi,

    I want to create a calculated field in Pivot table options with a count.

    I need to divide sales per quantity of clients.

    I tried this formula: ='salesunit'/'client' but the result was #DIV/0!

    Also tried this formula: ='salesunit'/count('client') but the result was sales unit / 1.

    In attachments, there is an example.

    Someone could help me?

    Tks
    Attached Files Attached Files

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

    Re: Count in a calculated field (Pivot Table)

    With an helpcolumn to count the clients.

    See the attached file.
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    07-18-2013
    Location
    Sćo Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Count in a calculated field (Pivot Table)

    Quote Originally Posted by oeldere View Post
    With an helpcolumn to count the clients.

    See the attached file.
    Oldere,

    Thanks!

    It works perfectly with a auxiliary column. There is no way to do this function in calculated field formula?

    I will update my excel to 2013 version, and in this version is possible set the calculated field to distinct count. So, will be very important to me put this function inside a default calculated field.

    Do you know a formula to do the same thing with distinct count?

    Thanks

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

    Re: Count in a calculated field (Pivot Table)

    Maybe it can be done within the pivot table (in excel 2007, which I use), but I don't know that.

    Maybe it can be done with pivot table in excel 2010, since I read there are more options available in that version.

  5. #5
    Registered User
    Join Date
    07-18-2013
    Location
    Sćo Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Count in a calculated field (Pivot Table)

    I changed the formula... now the count is distinct:

    See the attached file.
    Attached Files Attached Files

+ 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. Calculated pivot table field using pivot table data in calculation
    By BrittleStar in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-10-2012, 05:35 PM
  2. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  3. Replies: 0
    Last Post: 10-27-2010, 09:24 PM
  4. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM
  5. [SOLVED] Using a Pivot Table Calculated Field to get a Unique Count
    By Mike Struckman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2005, 02:40 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