+ Reply to Thread
Results 1 to 7 of 7

display filled vs empty cells in a range

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    South, East
    MS-Off Ver
    Excel 2007
    Posts
    27

    display filled vs empty cells in a range

    I have been trying to use counta and countblank to obtain the filled and empty cells in a range and return the completed by %
    I have achieved this using mulitple cell feed but need it in all in a single cell if pos.


    B4:B13 are the data cells (range),, how can I get the % of completed or filled cells in the range to display in cell C14

    I will be greatfull for any help

  2. #2
    Registered User
    Join Date
    08-04-2009
    Location
    South, East
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: display filled vs empty cells in a range

    Oh, the data in the cells is dates

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: display filled vs empty cells in a range

    Not sure I understand the problem, although I'm going to assume there's some twist - like there are formulas in B4:B13 but some are returning an empty string ("") and are not truly blank.

    =COUNTBLANK(B4:B13) will count the number of blanks, even those that are empty strings.

    In that manner, to get the number of non-blanks, you could use something like

    =ROWS(B4:B13)-COUNTBLANK(B4:B13)
    Hope that helps!

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: display filled vs empty cells in a range

    You say they are dates... just static dates and not formulas resulting in dates? If so, then there's no reason why COUNT or COUNTA won't tell you the number of non-blank cells, and COUNTBLANK will tell you the number of blanks.

  5. #5
    Registered User
    Join Date
    08-04-2009
    Location
    South, East
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: display filled vs empty cells in a range

    Yes, they work (counta and countblank) I am trying to create a formula in a cell outside of the range that will combine all the needed funtions to display what percent of the range has been filled with dates (like 5 out of 10 would return a 50% in the formulated cell)

    I have made this work with several cells, I just need to combine the funtions into a single and cant seem to get it.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: display filled vs empty cells in a range

    Ahh, then how about:

    =COUNTA(B4:B13)/ROWS(B4:B13)

    Then format that cell as percentage.

  7. #7
    Registered User
    Join Date
    08-04-2009
    Location
    South, East
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: display filled vs empty cells in a range

    Your the man,, worked

    Thanks alot

+ 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