+ Reply to Thread
Results 1 to 7 of 7

Counting rows that don't contain a specific value.

  1. #1
    Registered User
    Join Date
    12-03-2022
    Location
    Gdańsk, Poland
    MS-Off Ver
    Office 2021
    Posts
    1

    Counting rows that don't contain a specific value.

    Hi everyone,

    I have a question. I wanted to count rows that don't contain letter B. In my sheet I have products with diffrent letters.
    These are A, B, C and D.

    I would like to count rows in a column that contain these values, all rows apart from theese which contain letter A.
    I waned to use COUNTIFS(). Just like here:

    COUNTIFS(D35:D450; not("A"))

    But it doesn't work. Can I do that in one formula?

    Thanks a lot!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,502

    Re: Counting rows that don't contain a specific value.

    if you want to count those w/o A in that column try it this way... =COUNTIF(D35:D450;"<>A")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,502

    Re: Counting rows that don't contain a specific value.

    BTW, that will count blanks within that range as also not A.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,580

    Re: Counting rows that don't contain a specific value.

    I wanted to count rows that don't contain letter B.
    And
    I would like to count rows in a column that contain these values, all rows apart from theese which contain letter A.
    There seems to be some contradiction.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,580

    Re: Counting rows that don't contain a specific value.

    If you want to be specific:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Counting rows that don't contain a specific value.

    Please attach a sample workbook (see yellow banner) with expected results.
    Then you have a better chance that we will interpret you correctly.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Counting rows that don't contain a specific value.

    maybe with Power Query

    source Count
    blablaAbla
    6
    kotukoD
    whateCver
    mayBe
    skyDrive
    America
    Europe
    Africa
    Asia
    NeZealand


    Please Login or Register  to view this content.

+ 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] Need help counting specific character for specific rows
    By ozoszil in forum Excel General
    Replies: 5
    Last Post: 07-03-2022, 07:29 PM
  2. [SOLVED] Help with counting number of times a specific machine receives a specific result
    By bgundling in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2020, 10:21 PM
  3. Replies: 4
    Last Post: 07-13-2017, 12:24 AM
  4. [SOLVED] COUNTIFS - Counting in order in one column, Counting only specific cells In another
    By kslattery in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2017, 01:17 PM
  5. Counting all rows that have a specific answer from drop down box
    By Puk87 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-05-2016, 03:18 PM
  6. Counting duplicates except rows with specific data
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2013, 10:10 AM
  7. Counting rows with specific criteria
    By sulrich in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2005, 02:13 PM

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