+ Reply to Thread
Results 1 to 4 of 4

Subtotal for countifs function

  1. #1
    Registered User
    Join Date
    04-16-2007
    Posts
    46

    Subtotal for countifs function

    Hi,

    My employees are rewarded for their sales once the product has been delivered.
    Every sale has a row with the salesman's name (Column B) and the status of the product (sold, delivered, canceled...) (Column N)
    The formula on cell "N46"
    =COUNTIFS(N5:N44,"=Delivered")
    Is there any way to use the subtotal function in order to get the countifs number once filtered by salesman name?
    Last edited by guyzk1; 02-08-2011 at 06:27 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Subtotal for countifs function

    The simplest way is to insert a helper column, e.g. in Z5 copied down

    =SUBTOTAL(3,N5)

    That formula will always show 1 on visible rows (assuming you always have column N populated) so then you can use a SUMIF formula for visible rows only

    =SUMIIF(N5:N44,"Delivered",Z5:Z44)
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-16-2007
    Posts
    46

    Re: Subtotal for countifs function

    Works great!!
    Thanks!

  4. #4
    Registered User
    Join Date
    04-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Subtotal for countifs function

    Brilliant solution. Thank you!

    Just what I needed, too.

    Sue

+ 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