+ Reply to Thread
Results 1 to 2 of 2

Any way of using "Countif" functionality in a Pivot Table?

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    57

    Any way of using "Countif" functionality in a Pivot Table?

    Hi All
    I have a need to use a condition similar to Countif in a Pivot Table.
    The data is sourced via an external ODBC link and it concerns Sales Data.
    I want to be able to report on Closed Sales by Advertising Medium.
    The source data has the individual sales leads along with their Advertising Medium listed in each row. In addition the Status of the lead is also listed ie "Won", "Lost", "Open" etc.
    What I need my Pivot Table to do is show the Advertising Medium as the Row Label in Column A and then show various values relating to each.

    Source.of.Sales........................Leads................%...........Sale.Qty...........Sale.Conv..............Sales.Total.Value
    Dropcard-Construction..................316............2.67%...............314...................99%.......................£50970.00
    Dropcard-Interiors......................1972...........16.67%...............803...................41%....................£205,412.00
    Internet.....................................735.............6.21%...............101...................14%....................£535,213.00
    Lancashire.Life...............................1..............0.01%..................1.................100%........................£2500.00
    Manchester.Evening.News................3..............0.03%..................3.................100%......................£12500.00


    "Leads" is easy enough as it's a simple count of the total as is the "%" column just displayed as a percentage, the difficult part is "Sale Qty" and "Sales Total Value" because they are conditional on the Status Field in the source data having a value of "Won".

    I'm hoping that there is some way of creating a calculated field that counts all of the leads for each of the Advertising Medium types that have a value of "Won", like a "Countif" formula would do. The problem is that I can't seem to find a way of doing it with a Pivot Table field and I can't insert a normal column into the middle of the Pivot Table to perform a standard "Countif" function.
    Any help gratefully received.
    Last edited by chris.slater; 08-05-2013 at 07:36 AM.

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

    Re: Any way of using "Countif" functionality in a Pivot Table?

    IF so, then it will be on:

    Options => formula => counted fields.

    Otherwise you have to make a column in the table and make an new pivot table.
    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: 2
    Last Post: 06-06-2013, 12:45 PM
  2. Replies: 4
    Last Post: 02-21-2012, 06:53 AM
  3. Pivot table showed "All" instead of "Multiple items" when using datasource from CSV
    By dikchan@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2009, 07:26 AM
  4. Replies: 0
    Last Post: 02-01-2006, 03:35 AM
  5. Replies: 1
    Last Post: 03-10-2005, 01:07 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