+ Reply to Thread
Results 1 to 5 of 5

Count # Blank Cells if Adjacent Cells are Not Blank

  1. #1
    Registered User
    Join Date
    02-21-2024
    Location
    Northern Virginia
    MS-Off Ver
    MS365
    Posts
    4

    Question Count # Blank Cells if Adjacent Cells are Not Blank

    Hi! I am creating a Dashboard within an Excel file to chart the data on a separate tab. I need help determining the formula for the following: If the date cells from A2 (ASA Notification) and B2 (ASA Response) are not blank, count B:B. This should return a single # of pending "ASA Responses from Column B.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Count # Blank Cells if Adjacent Cells are Not Blank

    if, by pending, you mean B is blank when A is not blank:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-21-2024
    Location
    Northern Virginia
    MS-Off Ver
    MS365
    Posts
    4

    Re: Count # Blank Cells if Adjacent Cells are Not Blank

    That is exactly what I needed, THANK YOU!!

    Can you help me understand how you came up with that formula so I can learn?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Count # Blank Cells if Adjacent Cells are Not Blank

    The first argument of the formula, i.e., --(A2:A9<>""), creates an array of true/false values base on the test criteria (<>"") and the "--" causes the true/false values to be converted to 1' or 0's.
    get rows that are not blank in A2:A9
    Please Login or Register  to view this content.
    the second argument tests for blanks in column B, returning another range of True/False values:
    Please Login or Register  to view this content.
    the sumproduct function then multiplies the corresponding rows of each array and sums the result
    Please Login or Register  to view this content.
    Last edited by protonLeah; 03-13-2024 at 02:51 PM.

  5. #5
    Registered User
    Join Date
    02-21-2024
    Location
    Northern Virginia
    MS-Off Ver
    MS365
    Posts
    4

    Re: Count # Blank Cells if Adjacent Cells are Not Blank

    This was extremely helpful, THANK YOU!!

+ 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. [SOLVED] How to count blank cells based on adjacent cells with names?
    By mutzie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2019, 08:33 PM
  2. Replies: 12
    Last Post: 05-29-2018, 05:11 PM
  3. [SOLVED] Find last max. value in list and count all previous non-blank cells in adjacent column
    By zeegerman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2015, 05:01 PM
  4. Count blank cells in a range and contiguous blank cells also as single cells! Tricky One!
    By SebastianColombia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 02:32 PM
  5. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  6. Replies: 4
    Last Post: 09-12-2013, 11:32 PM
  7. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 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