+ Reply to Thread
Results 1 to 4 of 4

SUBTOTAL(?) count all fields including blanks in a filtered range

  1. #1
    Registered User
    Join Date
    07-25-2019
    Location
    Salt Lake City, UT
    MS-Off Ver
    2016 32 bit
    Posts
    21

    SUBTOTAL(?) count all fields including blanks in a filtered range

    Basically, I need to count all of the rows in a filtered table regardless of if a cell has a value or not. SUBTOTAL(3,[my range]) will get me a count of all of the visible cells containing values. But, it omits blanks. And some fields may be blank in any given row of the dataset.

    I need this to be completely formula driven if possible.

    SubtotalSample111.xlsx
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: SUBTOTAL(?) count all fields including blanks in a filtered range

    If you're not filtering out blanks in the range, then you could just add COUNTBLANK to your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    09-21-2013
    Location
    Indore
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: SUBTOTAL(?) count all fields including blanks in a filtered range

    Hi
    if you want only text count in filter then try - if cell doesn't contain formula.
    It will not count blank cell.

    SUBTOTAL(3,D4:D13)

    if you want only text count in filter then try - if cell contain formula.
    Only you have to do is Given 0 in the place of "" blank (in the formula)
    So 0 will be count by SUBTOTAL(2,D4:D13)

    Final formula try this onAttachment 824043e -

    SUBTOTAL(3,E4:E13)-SUBTOTAL(2,E4:E13)

    Also unmark check box - so zero will not show in the cell.

    Attachment 824042

    Attached excel sheet for your ref.......

    Thank you !
    Meharban Singh Pal

  4. #4
    Registered User
    Join Date
    09-21-2013
    Location
    Indore
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: SUBTOTAL(?) count all fields including blanks in a filtered range

    [QUOTE=meharbanpal;5809629]Hi
    if you want only text count in filter then try - if cell doesn't contain formula.
    It will not count blank cell.

    SUBTOTAL(3,D4:D13)

    if you want only text count in filter then try - if cell contain formula.
    Only you have to do is Given 0 in the place of "" blank (in the formula)
    So 0 will be count by SUBTOTAL(2,D4:D13)

    Final formula try this onAttachment 824043e -

    SUBTOTAL(3,E4:E13)-SUBTOTAL(2,E4:E13)

    Also unmark check box - so zero will not show in the cell.

    Attachment 824042

    Attached excel sheet for your ref.......

    Thank you !
    Meharban Singh Pal

+ 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. [SOLVED] Subtotal Count is including formula row in filtered data
    By msdclark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2021, 01:12 PM
  2. Replies: 9
    Last Post: 08-26-2020, 04:25 AM
  3. Dynamic Range Sizes, including blanks
    By Speshul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-12-2014, 10:52 AM
  4. Subtotal Sumifs + filtered fields.
    By cf123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-28-2014, 09:23 PM
  5. Count filtered cells using SUBTOTAL
    By Russell Dawson in forum Excel Tips
    Replies: 2
    Last Post: 07-15-2012, 03:39 PM
  6. Subtotal including a Count and Sum
    By makku in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2008, 05:22 PM
  7. Count Blanks in a Filtered Column
    By Gos-C in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 03-23-2006, 03:25 AM

Tags for this Thread

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