How to modify SubTotal formula to also count cells with "DONE"?

Posted on 2011-10-10
Last Modified: 2012-05-12
Hello experts,
See my attached example.  I have formulas that count cells with dates and ignores N/A.  The formulas now need to include cells with "DONE".  (Formulas need to work when rows are filtered.)


Question by:garyrobbins
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    You mean the formulas in columns S and T? I opened your file and they are counting both the fields with date and "DONE"?

    Author Comment

    Sorry for not being more clear...  The formulas in rows 28 & 30.  Gary
    LVL 5

    Expert Comment

    COUNTIF is the command you looking for i think.

    Look for CountIF
    LVL 50

    Accepted Solution

    I don't think COUNTIF will work because the count needs to look at the visible rows only. Try these Gary

    ..... in M28 copied across


    and for M30


    regards, barry
    LVL 50

    Expert Comment


    I don't quite understand the rules that lead to "Training required" = 13 in row 28 and at the same time have "Training current" with 10 in row 30.

    From the formulas you're using I gather you could use in row 28


    and in row 30

    cheers, teylyn

    Author Closing Comment

    Thanks, Barry!  That's what I wanted...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now