+ Reply to Thread
Results 1 to 6 of 6

Automating filtered totals

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    Bath
    MS-Off Ver
    Excel 2003
    Posts
    3

    Automating filtered totals

    Hi,

    I have a massive spreadsheet of directory URLs and the number of pages there. I can only find out the number of pages under the lowest level directory.

    e.g.
    /website/pm/test/1/ ---- 5
    /website/pm/test/2/ ----- 9
    /website/pm/new/ --------2
    /website/keyboard/ -------3pages
    ...

    Basically I want to find out the total number of pages for /website/pm/. So that includes 3 folders. In the example the number I would be looking for is 16.

    To do this I filtered by the criteria "/website/pm/" and a simple equation added them up. =SUBTOTAL(9,B:B)

    But this will take FOREVER as there are so many different levels of directories I want to find out the totals of and have recorded in a seperate spreadsheet. So I need someway of automating it to an extent.

    Any ideas?

    Many thanks,

    Niall.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Automating filtered totals

    You maybe able to use a pivot table based on data and some helper columns.

    Can you post a example workbook so we can see the real layout of the data.
    Also include a few more records is possible.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-12-2010
    Location
    Bath
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automating filtered totals

    I've attached a sample spreadsheet.

    Just playing around with Pivot now.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Automating filtered totals

    Try this example pivot table
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-12-2010
    Location
    Bath
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automating filtered totals

    Thanks that is exactly what I want.

    However when I copy and paste my data and extend to helper cells the pivot chart doesnt update?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Automating filtered totals

    Would not expect it to either.

    You need to use the Pivot wizard to step back and adjust the range being used, you can then refresh the table.

    You can use a dynamic range as the data source if you set it up.

    PTDATA: =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))

+ 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