+ Reply to Thread
Results 1 to 2 of 2

Advanced Subtotal

  1. #1
    Registered User
    Join Date
    11-23-2007
    Posts
    35

    Advanced Subtotal

    Hi All,

    I currently have somehting like this in my spreadsheet:

    Date Trainer What Course Month of course

    7-Jan Sarah Nationwide Jan
    8-Jan Sarah Nationwide Jan
    9-Jan Sarah Nationwide Jan
    10-Jan Sarah RADARS Jan
    11-Jan Sarah RADARS Jan
    12-Jan Sarah Nationwide Jan
    13-Jan Sarah Update Jan
    14-Jan Sarah Auth Jan
    15-Jan Sarah Nationwide Jan
    16-Jan Sarah Nationwide Jan

    I want to be bale to count How many course are going on for a praticular month but it needs to work when you use a filter. In the above example I am cuurently using the below formula:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(D20:D50000, ROW(D20:D50000) - ROW(D20),0,1))*(D20:D50000="RADARS"))

    However, this formula only counts the amount of RADARS in the list. I want a formula to show ith the Month you filter, i.e Jan, there is 1 nationwide course, 1 update course, 1 auth course, 1 radr course and so on. Is this possible? It needs to work when you use a filter. Can any one help?

    Many thanks

    Craig.

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Craig,

    Sumproduct can work with multiple criteria, just add additional ones to the end of your formula.

    Not sure why you need to use subtotals.

    If I was doing it, I would have some cells to enter/select the search criteria from a drop down liste.g. Month, course type and then use these as the criteria in my sumproduct formula. Say Month is selected in A1, course in A2

    Please Login or Register  to view this content.
    Does that help?

    Ed

+ 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