+ Reply to Thread
Results 1 to 5 of 5

find number of data in a range IGNORE FORMULAS, BLANK cells

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    find number of data in a range IGNORE FORMULAS, BLANK cells

    Can you modify me the following code? I need to get back a number as many data are in the column under the cell B6 but ignoring the BLANK CELLS and cells which contains FORMULAS.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: find number of data in a range IGNORE FORMULAS, BLANK cells

    Maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: find number of data in a range IGNORE FORMULAS, BLANK cells

    Unfortunately it don't give me the correct value. It count the cells with formulas as well.

  4. #4
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: find number of data in a range IGNORE FORMULAS, BLANK cells

    I found a formula which give me the right value.
    Please Login or Register  to view this content.
    Could you implement in VBA code?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: find number of data in a range IGNORE FORMULAS, BLANK cells

    The code given cannot, repeat cannot count cells with formulas unless it is changed to xlFormulas. The xlConstants reference restricts the count to cells with flat values in them.

    If you think you're experiecing something different I would love to see that workbook and code, as far as I know that is impossible.

+ 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