Results 1 to 19 of 19

Count Number of Rows Based on Criteria

Threaded View

  1. #1
    Registered User
    Join Date
    07-04-2022
    Location
    Helsinki, Finland
    MS-Off Ver
    MS365 (PC) Version 2304
    Posts
    49

    Count Number of Rows Based on Criteria

    Hi!


    Sample workbook is attached. The headers are just default; the real dataset has unique headers.


    I have a table, which is 15 rows by 32 columns.


    I need to count the number of rows which contain a cell that is: empty OR contains the word "Unknown"

    but only if such a cell is in: Column 5 OR Column 6 OR Column 7 OR Column 8 OR Column 19 OR Column 21 OR Column 22 OR Column 31

    and only if the cell in Column 2 is: not empty.


    The word "Unknown" can only exist in the given columns {5, 6, 7, 8, 19, 21, 22, 31}, and not in any of the other columns.

    However, the word "Unknown" exists by default in every cell in all given columns, until it is supposed to be manually changed to a piece of data.


    For each row, the data entry starts in Column 2, so Column 2 should always have data in its respective row.

    So in the cases where, for example, B17 is empty and "Unknown" appears somewhere else in the row, that row should be excluded from the COUNT calculation.

    As soon as B17 is not empty, that row is included in the COUNT calculation, and it is then determined if it meets the criteria to be counted or not.


    In terms of empty cells ... they can appear anywhere in the table (people not entering the data, accidentally deleting data, etc).

    Row A10:AF10 has an empty D10, but it should not be counted because none of the given columns {5, 6, 7, 8, 19, 21, 22, 31} are empty, nor do they contain the word "Unknown".


    The expected result is: 14.


    Any help is appreciated; thanks in advance!
    Last edited by Nevanox; 05-24-2023 at 02:16 PM. Reason: Clarification.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-25-2021, 01:04 PM
  2. [SOLVED] Count number of lines based on text and number criteria, without duplicates
    By HVCompleto in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2017, 07:17 AM
  3. Replies: 4
    Last Post: 11-01-2016, 03:28 PM
  4. [SOLVED] Count number of occurrences based on criteria in multiple columns and rows
    By gerryger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2015, 08:13 PM
  5. [SOLVED] Count number of rows meeting either criteria
    By abousetta in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-14-2014, 05:35 AM
  6. Trying to count number of rows where criteria are met in columns
    By kfloyd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2013, 01:45 PM
  7. Count number of rows with multiple criteria
    By spinx in forum Excel General
    Replies: 5
    Last Post: 09-17-2010, 09:17 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