+ Reply to Thread
Results 1 to 4 of 4

Count number of blanks in a row based on first column

  1. #1
    Registered User
    Join Date
    04-13-2022
    Location
    USA
    MS-Off Ver
    Home and Student 2016
    Posts
    4

    Count number of blanks in a row based on first column

    Hello,

    I have a sheet tracking data about how many trainings have been delivered to clients (attached). Each cell can (1) have a date the training was completed, (2) have N/A if the training won't be necessary for that client, or (3) remain blank because the training hasn't been delivered yet.

    What I want is to count the number of blank cells in each row in another sheet ("Summary" worksheet in the attached file), with the following stipulations:
    • Don't add an extra column in the TrainingData worksheet
    • The data might be sorted differently sometimes, so I can't rely on Company 1 always being in column B.

    I can do it without either one those stipulations, but I'm running into trouble when I take them both into account.

    And just to be extra clear, the desired results are in Summary!B2:B5 show 0,3,4,5.

    Thanks!
    Attached Files Attached Files
    Last edited by smeyel; 05-20-2022 at 04:06 PM.

  2. #2
    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,410

    Re: Count number of blanks in a row based on first column

    In B2 copied down:

    =SUMPRODUCT((TrainingData!$A$2:$A$5=A2)*(TrainingData!$B$2:$F$5=""))
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    04-13-2022
    Location
    USA
    MS-Off Ver
    Home and Student 2016
    Posts
    4

    Re: Count number of blanks in a row based on first column

    That works perfectly, thank you! I've been trying to learn SUMPRODUCT but haven't gotten the hang of applying it in new situations yet. This is a great example to add to my knowledge bank.

  4. #4
    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,410

    Re: Count number of blanks in a row based on first column

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Formula help in separating text in column based on the column number count
    By chakkaravarthy.m in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2021, 12:29 PM
  2. Count values in a column based on data (with blanks) in another column
    By kehong216 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-11-2020, 05:45 AM
  3. [SOLVED] Count the number of items sold in one column based on the quantity in another column
    By mike_m1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-20-2013, 05:48 AM
  4. [SOLVED] Count the number of unigue numbers based on number in another column.
    By ksmith4809 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 09:11 AM
  5. Replies: 9
    Last Post: 06-08-2012, 06:22 PM
  6. Count column w/blanks & values based on specific date
    By nickelcell1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2009, 04:08 PM
  7. Count the total number of rows in a column, with blanks included
    By jblumGRT in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2009, 06:55 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