+ Reply to Thread
Results 1 to 3 of 3

Countblank

  1. #1
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121

    Countblank

    Hello,

    I'm trying to use this formula but want it to count the number of blanks only within the data, i.e. not to count the number of blanks after the last row of data:

    =COUNTBLANK(Progress!$G:$G)

    This is counting all the blanks (65363)

    I want to use G:G as the range because I want it to update automatically.

    Do you know of a way I can do this?

    Thanks
    Harry

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning baz0912

    Quote Originally Posted by baz0912
    Do you know of a way I can do this?
    Yes, a named range should do the trick. Copy this formula :
    =OFFSET(Sheet1!$G$1,0,0,COUNTA(Sheet1!G1:G5000),1)

    Now go to Insert > Name > Define.
    In the "Names in workbook" box type NotBlank
    Delete anything in the "Refers To" box and press Ctrl + V to paste (right click shortcut doesn't work here).
    Now click on Add and Close.
    In your cell type the formula :
    =COUNTBLANK(NotBlank)

    This should now return the right formula, and as new lines are added the Name NotBlank should extend with the range.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121
    Thanks for the feedback!

+ 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