+ Reply to Thread
Results 1 to 8 of 8

Help need for COUNTBLANK in one column based on another column

  1. #1
    Registered User
    Join Date
    10-31-2016
    Location
    FLORIDA
    MS-Off Ver
    2010
    Posts
    3

    Question Help need for COUNTBLANK in one column based on another column

    Help needed with formula

    =COUNTBLANK(C7:C16,),COUNTIFS(AP7:AP16,"X",AP7:AP16,"P")

    Not working correctly...Not sure where its going wrong.

  2. #2
    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: Help need for COUNTBLANK in one column based on another column

    Not sure what you are trying to do, but try it like this:

    =COUNTIFS(AP7:AP16,"X",C7:C16,"") + COUNTIFS(AP7:AP16,"P",C7:C16,"")

    i.e. count the blanks in column C where column AP is either "x" or "p".

    Hope this helps.

    Pete

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help need for COUNTBLANK in one column based on another column

    Welcome to the forum!

    What is the formula supposed to be doing? Explain in WORDS.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help need for COUNTBLANK in one column based on another column

    Wrong argument
    COUNTBLANK(range)
    COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2],…)

    Maybe try

    =sum(COUNTIFS(AP7:AP16,{"X","P"},C7:C16,""))

  5. #5
    Registered User
    Join Date
    10-31-2016
    Location
    FLORIDA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help need for COUNTBLANK in one column based on another column

    I'm trying to only count billed units only
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help need for COUNTBLANK in one column based on another column

    I think this will do it:

    =COUNTIFS(AP4:AP13,"<>X",AP4:AP13,"<>")

  7. #7
    Registered User
    Join Date
    10-31-2016
    Location
    FLORIDA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help need for COUNTBLANK in one column based on another column

    Thank you. Lack of sleep, and I'm over thinking it.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help need for COUNTBLANK in one column based on another column

    It happens.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 3
    Last Post: 08-27-2017, 05:20 PM
  2. [SOLVED] Sum values in Column A, based on dates in Column B & if value in Column C = True
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-25-2016, 12:03 PM
  3. Replies: 3
    Last Post: 03-22-2014, 08:35 AM
  4. Countblank - Need code to update countblank numbers as data is updated
    By agregory12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2013, 01:49 AM
  5. Only COUNTBLANK('s) if another column is not blank...
    By stephen_ in forum Excel General
    Replies: 3
    Last Post: 06-21-2012, 07:30 AM
  6. [SOLVED] CountBlank for all Names in a Column, and another trick
    By SteveC in forum Excel General
    Replies: 2
    Last Post: 05-25-2006, 05:10 PM

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