+ Reply to Thread
Results 1 to 8 of 8

Filtering a value out and keeping track of it separately

  1. #1
    Registered User
    Join Date
    02-24-2013
    Location
    Dallas, TC
    MS-Off Ver
    Excel 2007
    Posts
    30

    Filtering a value out and keeping track of it separately

    Hello,
    Attached is a Pivot table (done on MAC).
    This is a table with > 100K rows. Each row has a number under columns ABCD&E. For the most part, each row will contain only a number under one column. But occasionally it may contain values in 2 or more columns like that shown in the 2nd row #48145. For this row, columns B and E both have values of 3 and 1 totalling 4.

    At the end of the table, the totals for ABCD&E are provided as well. But if there are any rows with greater than 1 value (like that in the 2nd row), then that needs to be subtracted from the table. That total (in this case 4) must be counted in a separate placeholder for ABCD&E. In this case B will have 3 and E will have 1. They will be separate running totals.

    Is it possible to run another pivot on this? If not is there a simple formula to achieve this?
    many thanks
    -----------------
    Pivot PNG.png
    Last edited by amt7565; 07-17-2016 at 04:02 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Filtering a value out and keeping track of it separately

    Could you attach a small sample worksheet (just what you have here will probably be enough), but show (manually) what you are expecting to see.

    It's hard to tell which columns the numbers are in, and I'm not sure where you want your "separate placeholder". Also do you just want the total (e.g. 4) in that cell, or do you want to store the individual numbers?

    To upload a workbook, click on Go Advanced, scroll down to Manage Attachments - click there and you will be able to browse for then upload your file.
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  3. #3
    Registered User
    Join Date
    02-24-2013
    Location
    Dallas, TC
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Filtering a value out and keeping track of it separately

    Thanks Shirleyxls. I realized that the format I posted was not good so pasted an image. Hope this helps?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filtering a value out and keeping track of it separately

    Hi,

    I find this very hard to understand.

    Please put together a small subset of data, sufficient to cover all permutations. Then manually create a range of cells showing exactly what results you want to see. Leave us to decide whether a Pivot Table is necessary.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filtering a value out and keeping track of it separately

    Quote Originally Posted by amt7565 View Post
    Thanks Shirleyxls. I realized that the format I posted was not good so pasted an image. Hope this helps?
    Hi,

    Pictures are rarely much use. Please upload an actual (sample) workbook. We prefer not to have to recreate data when you already have a workbook

  6. #6
    Registered User
    Join Date
    02-24-2013
    Location
    Dallas, TC
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Filtering a value out and keeping track of it separately

    Thank you. I have attached a file in excel (note this was created on a Mac, hope you can open it.

    This is an example of the PIVOT. If possible like to convert this to another Pivot instead of using formulas.

    thanks
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-24-2013
    Location
    Dallas, TC
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Filtering a value out and keeping track of it separately

    Quote Originally Posted by shirleyxls View Post
    Could you attach a small sample worksheet (just what you have here will probably be enough), but show (manually) what you are expecting to see.

    It's hard to tell which columns the numbers are in, and I'm not sure where you want your "separate placeholder". Also do you just want the total (e.g. 4) in that cell, or do you want to store the individual numbers?

    To upload a workbook, click on Go Advanced, scroll down to Manage Attachments - click there and you will be able to browse for then upload your file.
    Shirley-
    In the first row (A1:E1), the 'count' is <=1. In this case, store the values in the cells as is. Here only 1 column has values populated in them. In this case the totals for Column-A will simply summed at the bottom of the column. And likewise for other columns.

    Now, in row#2, the 'count' > 1. Here at least 2 columns have values populated. In this case remove the values from B2 and E2(those cells should be '0' or blank), sum them and store them in another cell someplace.

    Hope that helps?

    thanks

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filtering a value out and keeping track of it separately

    Hi,

    This is still confusing.

    You say the file you uploaded is an example of a Pivot table that you want but you don't show what the data looks like. Unless we can see the data we can't decide whether it's in the right format to produce a PT.

    Furthermore in past #7 you refer to row A1:E1 which is blank, and then refer to row 2 which contains column labels.
    I assume you really mean Cells D3:E3 and D4:E4 but in all these things being clear is sort of important.

    Upload the workbook with the original data so that we can take another look. In addition show what the pivot table should look like given that you seem to want to exclude rows where the count of values is >1. Finally what's important. The Overall total or the totals of individual columns or do you want both?
    Last edited by Richard Buttrey; 07-18-2016 at 05:01 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. keeping track of a cells value
    By mtj2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2014, 12:34 PM
  2. [SOLVED] keeping track of payments
    By puzzledpete in forum Excel General
    Replies: 11
    Last Post: 10-09-2013, 09:57 AM
  3. keeping track of possible solutions?
    By oks10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2010, 05:44 PM
  4. Keeping track of payments
    By puzzledpete in forum Excel General
    Replies: 8
    Last Post: 08-16-2009, 08:05 AM
  5. Keeping Track Of Holidays
    By JamesT1 in forum Excel General
    Replies: 1
    Last Post: 08-30-2008, 05:45 AM
  6. Keeping track
    By JamesT1 in forum Excel General
    Replies: 2
    Last Post: 08-23-2008, 08:03 AM
  7. Keeping track of changes and saves
    By mattflow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2006, 04:50 PM
  8. keeping track of time
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2005, 10:05 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