+ Reply to Thread
Results 1 to 6 of 6

Counting blank cells based on non adjacent criteria

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Counting blank cells based on non adjacent criteria

    Excel Example.jpgI've tried pretty hard to find this answer before posting and it seems lots have asked a similar question but not exactly my situation. From what I can tell SUMPRODUCT is the answer to many people's questions but I can't make it go in this application. This is for Excel 2010.

    See screen shot below (if it came through). Example when the analyst assigned column (I) reads "smith" I need excel to count the blank cells in that row for columns A,B,C,D. In the shortened example below I would want the function to return "8" in cell L3. The formula would be modified to show the same results for "Jones", "Dell" etc.

    I have used "IF(I3:I13="Smith",COUNTBLANK(A3:D3),"")" - and this gives the correct results for ONE row -but when this is expanded to include the full range it does not work. I can see a crude way of doing this with an extra sheet and dragging the formula down but it seems Excel would be able to do this without all that mess. Where am I going wrong?

    Excel Example.jpg

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Counting blank cells based on non adjacent criteria

    Hi
    please post a sample sheet. Pictures are nice but useless

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting blank cells based on non adjacent criteria

    Here is one way that the blanks can be counted.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Counting blank cells based on non adjacent criteria

    Excel Forum Example.xlsxI obvioulsy need to get more comfortable with the SUMPRODUCT function. Newdover I can see how I can apply what you have and that will do the job. Thank you!

    Since Pepe asked I also attached a shortened version of what I'm working with, if anybody wants to have another go at it.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting blank cells based on non adjacent criteria

    You're welcome and thanks for the feedback.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting blank cells based on non adjacent criteria

    Quote Originally Posted by newdoverman View Post
    Here is one way that the blanks can be counted.
    This array formula** entered in L3 and copied down:

    =SUM(IF(I$3:I$13=K3,IF(A$3:D$13="",1)))


    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Counting cells based on values of adjacent cells
    By SpookyAlienX in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2013, 08:20 PM
  2. [SOLVED] Copy adjacent cells based on matched cell criteria
    By asdfwqefwe3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2013, 02:26 AM
  3. counting adjacent cells that match a criteria
    By chrisvacek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-11-2012, 11:44 AM
  4. Counting cells with a criteria based on content and adjacent cell
    By ziggy12345 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2008, 03:32 PM
  5. DCOUNT-criteria syntax for counting blank cells
    By onin111 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2008, 06:37 AM

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