+ Reply to Thread
Results 1 to 4 of 4

What filters to use in pivot table

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Wollongong, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    What filters to use in pivot table

    Hi,

    I have a very large amount of data that can only be downloaded one way and due to time constraints and the very large amount of data I prefer not to rearrange it. The first column includes a Student Number but this may appear many times due to changing data in other columns.

    How do I count the students once only. What filters do I use? In my small sample the answer should be 2.

    Student Number *** School District Status Year Enrolled From Enrolled To
    123456 F Smithfield North Enrolled 2011 31/01/2011 8/04/2011
    123456 F Smithfield North Enrolled 2011 27/04/2011 6/05/2011
    123456 F Smithfield North Enrolled 2011 9/05/2011 18/11/2011
    123456 F Smithfield North Enrolled 2011 21/11/2011 23/12/2011
    787878 F Smithfield North Enrolled 2011 31/01/2011 8/04/2011
    787878 F Smithfield North Enrolled 2011 27/04/2011 6/05/2011
    787878 F Smithfield North Enrolled 2011 9/05/2011 18/11/2011
    787878 F Smithfield North Enrolled 2011 21/11/2011 23/12/2011

    I have struggled with this for years, any suggestions would be appreciated.

    Regards,

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: What filters to use in pivot table

    hi glenath, welcome to the forum. try:
    =SUMPRODUCT(1/COUNTIF(A2:A9,A2:A9))

    if i'm wrong, it's actually better if you could upload the Excel sample file. uploading a sample Excel file will enable us to help you better. to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon
    ideally, it should contain your desired results

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-23-2013
    Location
    Wollongong, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: What filters to use in pivot table

    I have not yet tried your suggestion - but thought I would have a go at attaching the file anyway. If you have time it would great if you could take a look.

    Thanks for your quick response.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-23-2013
    Location
    Wollongong, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: What filters to use in pivot table

    Sorry - I should have also said that I may want to count how many students were enrolled in Smithfield school for e.g. and this result would be 2.

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: What filters to use in pivot table

    try this array formula:
    =SUM(IF(FREQUENCY(IF(C2:C9="Smithfield",A2:A9),A2:A9)>0,1))

    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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