+ Reply to Thread
Results 1 to 6 of 6

Counting like numbers as 1 in a pivot table

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    South Carolina
    MS-Off Ver
    Office 2007
    Posts
    16

    Counting like numbers as 1 in a pivot table

    I have a scenario where I am trying to develop a more accurate KPI. We have a report that is returned as an excel spreadsheet. I am creating a KPI via a pivot table based on this spreadsheet.
    I have 2 issues.

    1) I am trying to count the number of loads. But the way this spreadsheet appears there is a row entry for every product. But, there is a posibility of multiple products for one delivery. The only constant is under ORDER# it is the same for each product in that order. If I could associate all the like order#'s as a value of one I would have the count.

    2) Some of the loads are splits (we take one full load to 2 or more stores). I need to count splits but in the split column they place the word split for every different product and every different location. Meaning if I take 2 products to one store and 2 products to the other they will show it as 4 splits. In my terms it is only 1 split. Again the only constant data is the order#. Each product to each store will still have the same order#.

    Capture.PNG
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Counting like numbers as 1 in a pivot table

    @ BadKornFlake
    With the data examples in your spreadsheet, I'm not sure to fully catch your request.
    Check the attached book to see if that is the idea,
    I've put some notes on it
    Attached Files Attached Files
    Barriers are there for those who don't want to dream

  3. #3
    Registered User
    Join Date
    12-13-2011
    Location
    South Carolina
    MS-Off Ver
    Office 2007
    Posts
    16

    Re: Counting like numbers as 1 in a pivot table

    @vichopalacios
    My apologies for not responding sooner. My email notifications were mistakenly off for this site and I thought no one had a solution as of yet and I was going to tweak the question.
    The attached book you sent is close to what I am after. Simply put, each series of rows that you colored the same, represents a single load placed on a truck or 1 load.
    Your counting works except in L5 and L6 where the value is 1 in each cell (counting as 2 loads even thought it should only be 1) as opposed to L2 and L3 where one cell is 0 and one cell is 1 or a total of 1 load.
    Using your spread sheet maybe this will better show my end need. Thank you for your help.
    *also know that the data does not need to be sorted by site only because we wont review this data or count this data by site. The main goal will be the number of loads and gallons hauled.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-11-2012
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Counting like numbers as 1 in a pivot table

    Which version of Excel are you using?

    In Excel 2010 and later, if you add your Pivot Table to the Data Model as you create your PT that makes the Distinct Count available to you in your PT.

    This means that you can right click your Splits and any other column in your PT:

    Summarise Values by
    Distinct Count (the last item)

    I can send my version of your file if you need it.

    Duncan

  5. #5
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Counting like numbers as 1 in a pivot table

    Hi @ BadKornFlake

    Probably I misunderstood your statement.
    I got a bit confused about:
    as opposed to L2 and L3 where one cell is 0 and one cell is 1 or a total of 1 load.
    To resume... you only need to count the quantity of non repeated " Order#'s " in that column, regardless of anything else?

  6. #6
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Counting like numbers as 1 in a pivot table

    To count non repeated values in the range ( A2:A56), you can use:

    Please Login or Register  to view this content.
    or check in office support :
    https://support.office.com/en-sg/art...0-a929fbc1e273

    Remember that these are CSE matricial formulas, must use Control-Shift-Enter, instead of just Enter. You don't write the { } symbols, they come automatically
    Last edited by vichopalacios; 11-16-2015 at 11:03 AM.

+ 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: 12
    Last Post: 08-23-2012, 08:16 AM
  2. Replies: 3
    Last Post: 12-14-2011, 11:40 AM
  3. pivot table counting blank cells in data table
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 09-23-2008, 11:26 AM
  4. Replies: 2
    Last Post: 09-23-2008, 11:01 AM
  5. Counting results from Pivot Table
    By kjb in forum Excel General
    Replies: 0
    Last Post: 05-02-2007, 10:44 AM
  6. [SOLVED] Pivot table and counting.
    By sacredarms in forum Excel General
    Replies: 2
    Last Post: 01-02-2006, 10:35 AM
  7. Counting .5 in a pivot table
    By mtcurtis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2005, 01:05 PM
  8. [SOLVED] Counting numbers in a table
    By Arwes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 06: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