+ Reply to Thread
Results 1 to 6 of 6

CountIfs for not blank cells with condition

  1. #1
    Registered User
    Join Date
    07-29-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    79

    CountIfs for not blank cells with condition

    Hello All,

    I would like to request for your assistance with the below. I have 2 worksheetsm Report and Data. In the Data worksheet Col A contains list of names, some are multiple instances while B contains comments.

    On worksheet report, the list of names serves as a tally and I would like to know how I can count based on the names in Data, the number of instances where the cell contains comments, except for "NA"

    E.g

    Alm = 0
    David = 1
    Faye = 1 because her other comment is NA which is excluded.

    I'm trying to combine =countifs and not is blank condition =COUNTIFS(A:A,F2,B:B,NOT(ISBLANK(B:B))) for example, but can't get it to work.

    Thank you so much!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: CountIfs for not blank cells with condition

    Withdrawn by FR. Misread instructons.
    Dave

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: CountIfs for not blank cells with condition

    Put this formula in G2:

    =COUNTIFS(A:A,F2,B:B,"<>",B:B,"<>NA")

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: CountIfs for not blank cells with condition

    Pete beat me to it !

    Try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    F
    G
    1
    Names
    Variance
    Name
    Variance Count
    2
    Alm
    Alm
    0
    3
    Celica
    NA
    Faye
    1
    4
    Tobin
    Celica
    0
    5
    Faye
    NA
    Mark
    1
    6
    David
    Tobin
    0
    7
    David
    Absent
    James
    0
    8
    Mark
    David
    1
    9
    Faye
    Late sub
    10
    James
    11
    Mark
    Vio 2.4-B1
    12
    Mark
    13
    Mark
    14

  5. #5
    Registered User
    Join Date
    07-29-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    79

    Re: CountIfs for not blank cells with condition

    Hello Sir Pete_UK and Sir FlameRetired, thank you so much for the assistance. The given code by sir Pete is working extra perfect! Cheers!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: CountIfs for not blank cells with condition

    You are welcome. Glad to help. Thank you for the feedback and marking your thread Solved.

+ 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. CountIFS - ignore blank cells and cells with text in
    By whitebits in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2018, 12:43 AM
  2. [SOLVED] COUNTIFS to count blank cells as a criteria
    By Cortlyn in forum Excel General
    Replies: 3
    Last Post: 07-15-2017, 05:36 PM
  3. Countifs Returning Value Error with Blank Cells
    By Troy73 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2017, 08:44 AM
  4. Replies: 4
    Last Post: 02-24-2017, 02:39 AM
  5. Exclude blank cells from COUNTIFS formula
    By Leahsco in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-05-2014, 11:45 AM
  6. [SOLVED] COUNTIFS for non-blank cells
    By DSwartz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2013, 03:39 PM
  7. Countifs should return blank results for blank row of cells
    By Groovicles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2013, 06:20 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