+ Reply to Thread
Results 1 to 8 of 8

Need to count all non blank cells in column that meet criteria of two seperaate values

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Need to count all non blank cells in column that meet criteria of two seperaate values

    I have tried COUNTIFS and COUNTA together to see if I could get this working.
    I have a table that has multiple columns, but I only need to compare 1 column for 2 separate values (High, Severe) and then count non blank cells in a second column.

    Column A has values of Severe, High, Medium, Low. Column B has either no value or a document number.

    I Need to count all document numbers that are severe or high values in column A. I am having a hard time figuring it out.
    thank you.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    =SUM(COUNTIFS(A1:A100,{"HIGH","SEVERE"},B1:B100,"<>"))

    Adjust the ranges to suit your data.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    Is the document number a real number, or is it a text string?

    You could try this if they are real numbers.

    =SUM(COUNTIFS(A1:A100,{"high","severe"},B1:B100,">0"))

  4. #4
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    Thank you,
    Unfortunately, =SUM(COUNTIFS(A1:A100,{"HIGH","SEVERE"},B1:B100,"<>")), did not work.
    It may be because the Document IDs are prefixed by DOC such as DOCxxxxxxx.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    Quote Originally Posted by tomcoll67 View Post
    Thank you,
    Unfortunately, =SUM(COUNTIFS(A1:A100,{"HIGH","SEVERE"},B1:B100,"<>")), did not work.
    It may be because the Document IDs are prefixed by DOC such as DOCxxxxxxx.
    I can't see why that would make a difference. From your original post it would appear the cells in column B are either blank or they're not.
    Attaching sample data in a worksheet is always a good idea...

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    It worked for me, the criteria "<>" is pretty much saying "IS NOT NOTHING"

    Can you post a sample book?
    Make sure there is just enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    03-28-2013
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    I was missing a comma. I apologize and thank you.

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need to count all non blank cells in column that meet criteria of two seperaate values

    Glad you got your solution

    Don't forget to mark the thread as SOLVED.

    BSB.

+ 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] Advanced Lookup to count cells in a column that meet criteria
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2013, 12:59 PM
  2. count cells if ADJACENT row values meet criteria
    By xinutel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-30-2012, 03:55 PM
  3. [SOLVED] Count Unique Values in Column A that meet criteria in Column B
    By ashakespeare in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2012, 07:33 PM
  4. Replies: 5
    Last Post: 08-05-2009, 02:43 PM
  5. count non blank cells which meet criteria in another column
    By cmarsh5035 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2005, 12:45 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