+ Reply to Thread
Results 1 to 3 of 3

count cells

  1. #1
    Registered User
    Join Date
    03-17-2005
    Posts
    1

    count cells

    Hi all,

    I have a problem and hope somebody can help me out.
    I have a list with data. The list contains either 1 or 2 or 3 or something else or is blank.
    I want to count all the cells with do not contain a 1 or 2 or 3.
    In other words, I need the number of the empty cells plus the number of the cells with no 1 or 2 or 3.

    Thx

  2. #2
    Registered User
    Join Date
    03-16-2005
    Posts
    11

    here ya go

    Counts number of rows in the column minus the sum of rows with a 1 or 2 or 3. I assumed all yours 1,2, or 3s are in the same column. Just replace the cell references in this formula and your good.

    =ROWS(A1:A12)-SUM(COUNTIF(A1:A12,1),COUNTIF(A1:A12,2),COUNTIF(A1:A12,3))

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Another way...

    =SUMPRODUCT(--(1-ISNUMBER(MATCH(A1:A100,{1,2,3},0))))

    Hope this helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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