+ Reply to Thread
Results 1 to 13 of 13

How do I count blank cells in a column since the last entry?

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Question How do I count blank cells in a column since the last entry?

    I want to Count blank cells in a column since the last entry.

    A simple example of what I’m trying to get is,

    A B C D E
    1 2 5 1 4
    2 3 1 2 5
    3 1 4 1
    4 2 6
    5 6


    3 0 4 1 2


    So, the count at the bottom of Column A = 3, bottom of Column B = 0, bottom of Column C = 4, bottom of Column D = 1 and bottom of Column E = 2

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How do I count blank cells in a column since the last entry?

    Hi Alan,

    I'm sorry, but I'm not sure I can make any sense of what it is that you are trying to do, as your sample data would indicate to me that column A and column B should have the same number of blank cells since the last entry, as both columns have the same number of rows of data...???

    Without knowing exactly what you're after, or the exact layout of your actual data, I would suggest looking into the COUNTBLANK function that is built into Excel.

    If this doesn't help you, please upload a sample workbook containing some sample data, the results that you are expecting, and how you expect to obtain those results.

    I hope this helps

  3. #3
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: How do I count blank cells in a column since the last entry?

    Sorry, this is the first time I've used the forum. The sample data has moved over when it was posted. The numbers in the first column are supposed to be the row numbers.

    Column A should be: 2, 3, 1, 2, 6
    Column B should be: 5, 1, 4, 6

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

    Re: How do I count blank cells in a column since the last entry?

    Try this...

    Entered in say, A10 and copied across:

    =COUNTBLANK(INDEX(A1:A5,MATCH(1E100,A1:A5)):A5)

    If there is no number entered in a column then the formula will return an #N/A error.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How do I count blank cells in a column since the last entry?

    Sorry Alan, but I still don't understand. What row do you want to enter in the formula to calculate the number of blank cells? And how do you get 3 in column A and 0 in column B when column B has more blank cells at the bottom than column A?

    As previously requested, could you please upload a sample workbook

  6. #6
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: How do I count blank cells in a column since the last entry?

    Fantastic. It worked on my practice example. Thanks Tony.

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

    Re: How do I count blank cells in a column since the last entry?

    On the very top post of the thread, click the "Reply With Quote" button and you'll see the true data layout.
    Last edited by Tony Valko; 08-18-2013 at 10:04 PM. Reason: I still don't know how to spell.

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: How do I count blank cells in a column since the last entry?

    Ah I see...and here I was thinking I was an idiot for not understanding how your formula got the right answers!!! Because it certainly didn't when I tested it, but it does now that I have seen the proper layout of the data.

    Thanks for the tip Tony

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

    Re: How do I count blank cells in a column since the last entry?

    It's weird how the forum strips out some extra space characters in certain displays yet allows them in others.

  10. #10
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Smile Re: How do I count blank cells in a column since the last entry?

    Attached is a simple worked example with the formula that you've provided. Thanks.Worked Example - Count Blank Cells since last entry.xlsx

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

    Re: How do I count blank cells in a column since the last entry?

    You're welcome. Thanks for the feedback!

  12. #12
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Smile Re: How do I count blank cells in a column since the last entry?

    Attached is a simple worked example with the formula that you've provided. Thanks.

  13. #13
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: How do I count blank cells in a column since the last entry?

    Quote Originally Posted by Tony Valko View Post
    On the very top post of the thread, click the "Reply With Quote" button and you'll see the true data layout.
    I also liked it!
    Marcelo Branco

+ 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. Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. [SOLVED] Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Count blank cells since last entry
    By Markos Mellos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  5. Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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