+ Reply to Thread
Results 1 to 4 of 4

filter and subtotal

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    5

    filter and subtotal

    I am creating a document were the data is listed simply as:
    Column A Column B Column C
    ABC hospital dept 1 Dr.A 500
    Dr. B 200
    Dr C 300

    ABC hospital dept 2 Dr.A 300
    Dr. B 200
    Dr C 400

    I have utilized =SUBTOTAL(109,(D9:D3684)), so I can get the total of the visual number after auto and manual hiding, but this is just using the first line total, i.e.
    ABC hospital dept 1 Dr.A 500
    or if I select multiple department in auto filter they subtotal only reflects
    ABC hospital dept 1 Dr.A 500
    ABC hospital dept 2 Dr.A 300
    not the numbers associated with all the doctors in that department. Does anyone now the formula, so I can filter for all the lines associated with a particular heading-keeping in mind the the amount of doctors in each column is variable.

    Any assistance would be greatly appreciated. Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: filter and subtotal

    You need to have column A showing relevant department in each cell too.

    here is one way to quickly copy the departments to rows below.

    Select column A and then hold the CTRL key and select A1.

    Then go to Edit|Go To and click Special....select Blanks and click Ok.

    enter an = sign and hit the up arrow key.

    Hold the CTRL key again and hit ENTER.

    You may have to fix whatever was in A1.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: filter and subtotal

    what excel year are you working with

  4. #4
    Registered User
    Join Date
    09-29-2011
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: filter and subtotal

    2007. thanks!

+ 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