+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Counting non-blank cells

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    Augusta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Counting non-blank cells

    Hey all,

    Hope this is possible. I am trying to count non-blank cells in column D and number the rows with information concecutively.

    1. Smith
    2. Jones
    3. Brown
    4. Barnes
    BLANK
    BLANK
    5. Kinley

    I've tried everything I know, I've googles every combination of words that could help. I found one formula that 'kinda' worked, but it counted cells with the same data in them together, and to be honest, I can't remember what the formula was!

    Hope yall can help!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Counting non-blank cells

    Here, try this:

    =COUNTA(D:D)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    11-16-2010
    Location
    Augusta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Counting non-blank cells

    Quote Originally Posted by zbor View Post
    Here, try this:

    =COUNTA(D:D)
    That's the formula I tried last time. It works, except I have to manually change the formula (IE: going from =COUNTA(D5:D6) to =COUNTA(D5:D7) for 300 lines. Even worse, it will leave the previous value if its counting a blank row. I need consecutive numbers for non-blank, and nothing for blank.

    Thanks for the response though!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Counting non-blank cells

    Can you write how do you want that your output looks like?

  5. #5
    Registered User
    Join Date
    11-16-2010
    Location
    Augusta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Counting non-blank cells

    Quote Originally Posted by zbor View Post
    Can you write how do you want that your output looks like?


    1 Smith
    2 Jones
    2
    3 Williams
    4 Brown

    and Im trying to get-

    1 Smith
    2 Jones

    3 Williams
    4 Brown


    Thanks again!

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Counting non-blank cells

    And in first column is formula?

    Then use:

    =IF(ISTEXT(B1), COUNTIF($B$1:B1 "?*"), "")

    This will ignore numbers in B column if you have any...
    IF you don't you can use:

    =IF(ISTEXT(B1), COUNTA($B$1:B1), "")

+ 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