+ Reply to Thread
Results 1 to 6 of 6

CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    Excel.png

    Hi Everyone,

    I'm looking for a formula that will Count the number of Male and Females but ONLY when there is a name in column A. It would ignore the count if column A is blank.

    I've tried Countifs setting A:A"<>0", B:B, "Male") that didn't quite do it. Any suggestions. The sheet is 500 columns long and we're creating a dashboard to show progress

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    Try:

    =COUNTIFS(A:A,"?*",B:B,"Male")

  3. #3
    Registered User
    Join Date
    02-12-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    Re: CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    It won't let me post a link to the google sheet I created for this

    goo.gl/Q8kYGN

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    01-08-2017
    Location
    Malang, Indonesia
    MS-Off Ver
    2013
    Posts
    29

    Re: CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    Try this :

    in cell B11> =COUNTIFS(B2:B9,"M",A2:A9,"*?")
    in cell B12> =COUNTIFS(B2:B9,"F",A2:A9,"*?")

    or

    in cell B11> =COUNTIFS(B2:B9,"M",A2:A9,"<>"&"")
    in cell B12> =COUNTIFS(B2:B9,"F",A2:A9,"<>"&"")
    Last edited by brake; 03-03-2018 at 06:28 AM. Reason: adding formulas

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: CountIFS with one of the conditions being a non blank cell (HELP PLEASE)

    =COUNTIFS($B$2:$B$9,"m",$A$2:$A$9,"<>")
    =COUNTIFS($B$2:$B$9,"f",$A$2:$A$9,"<>")

    or

    =COUNTIFS(B:B,"m",A:A,"<>")
    =COUNTIFS(B:B,"f",A:A,"<>")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. trying to return a blank cell if one of two conditions are met
    By suicycoe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-15-2017, 11:17 PM
  2. [SOLVED] COUNTIFS formula keeps counting blank cell with formulas.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2017, 08:22 PM
  3. COUNTIFS - Containing date and blank cell
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2015, 05:36 PM
  4. [SOLVED] Populate a cell based on 2 conditions otherwise leave blank
    By dave84x in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-12-2014, 10:50 AM
  5. 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
  6. Countifs (How to give criteria for blank cell).
    By Shradharani in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-18-2013, 07:44 AM
  7. Replies: 2
    Last Post: 09-10-2012, 04:16 AM

Tags for this Thread

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