+ Reply to Thread
Results 1 to 4 of 4

Subtotal visible cells with if function

  1. #1
    Registered User
    Join Date
    06-14-2017
    Location
    Atlanta,
    MS-Off Ver
    Microsoft Excel 2016 MSO
    Posts
    55

    Subtotal visible cells with if function

    Hi guys,

    Simple question otherwise I'd attach a worksheet. I need a subtotal count a function to count visible cells between cell g5:g1404 if the cells do NOT equal #N/A.

    I know the simple subtotal function =subtotal(3, G5:g4104) but I need it to count the cells only if the cells do not equal #N/A.

    Thanks!

    P.S.: Yes, I tried googling it and was unable to figure out a good answer.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Subtotal visible cells with if function

    If your excel 2010 and younger then AGGREGATE

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Subtotal visible cells with if function

    What version of Excel do you have? If using Excel 2010 or later, try AGGREGATE function instead of SUBTOTAL.

    =AGGREGATE(3,3,G5:G1404)
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    06-14-2017
    Location
    Atlanta,
    MS-Off Ver
    Microsoft Excel 2016 MSO
    Posts
    55

    Re: Subtotal visible cells with if function

    Aggregate worked perfectly. You guys RULE!!! Big thanks y'all.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SUBTOTAL/SUMIF on autofilter visible cells only
    By crispben in forum Excel General
    Replies: 9
    Last Post: 10-23-2017, 08:39 PM
  2. [SOLVED] Need Subtotal in attached code to NOTcount blanks or non visible cells
    By JoeVanGeaux in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-11-2017, 09:13 PM
  3. horiziontal subtotal visible cells only
    By JasperD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2014, 10:39 AM
  4. Subtotal only Visible Column
    By rjbautista20 in forum Excel General
    Replies: 9
    Last Post: 01-11-2012, 04:08 AM
  5. subtotal only visible columns
    By nd4spd in forum Excel General
    Replies: 4
    Last Post: 08-01-2011, 11:47 AM
  6. Subtotal & Using Visible Cells Only
    By ability in forum Excel General
    Replies: 4
    Last Post: 10-27-2008, 06:23 AM
  7. Visible rows and functions that work:subtotal function
    By Biff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 AM

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