+ Reply to Thread
Results 1 to 9 of 9

Help with countblanks

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    21

    Help with countblanks

    I have two colums one contains yes no and some are just blanks. The other is a list of names. I want to count the blanks in b and have it compare to a certain name in A. I can't quiet figure out the formula todo this.


    A B
    Jose Yes
    Joe Yes
    Jose
    carl No
    Randy
    Jose No
    carl No
    Robin
    mary Yes
    Robin Yes
    Mary
    carl
    Jose Yes
    mary
    Jose Yes
    Robin
    mary Yes

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Help with countblanks

    Hi,

    you could try



    =COUNTIFS(A:A,"Mary",B:B,"")

    or

    =SUMPRODUCT(--(A1:A1000="Mary"),--(B1:B1000=""))


    Regards
    Last edited by canapone; 11-11-2013 at 10:48 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with countblanks

    Hi,

    Assuming your data is in A1:B17, something like:

    =COUNTIFS(A1:A17,"Jose",B1:B17,"")

    Even better if you put e.g. Jose in a cell somewhere, say D1, so the formula is then dynamic:

    =COUNTIFS(A1:A17,D1,B1:B17,"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    11-11-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Help with countblanks

    Those are not working maybeI forgot to mention that these are on two different sheets.

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Help with countblanks

    Hi.

    maybe you could upload a sample file.


    An attempt:

    =COUNTIFS('Sheet 2'!A:A,"Mary",'Sheet 2'!B:B,"")

    Regards

  6. #6
    Registered User
    Join Date
    11-11-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Help with countblanks

    sample file.xlsx Okay please see attached for smaple file

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with countblanks

    Then you need, in B2 and copy down:

    =COUNTIFS('Phase 1'!$A$2:$A$27,Count!A2,'Phase 1'!$B$2:$B$27,"")

    Regards

  8. #8
    Registered User
    Join Date
    11-11-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Help with countblanks

    Thaks that works

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with countblanks

    You're welcome.

+ 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