+ Reply to Thread
Results 1 to 10 of 10

COUNTIF Issues count blank cells among existing data

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Marion, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    43

    COUNTIF Issues count blank cells among existing data

    I have the following formula
    Please Login or Register  to view this content.
    What I need to do is count all the rows that does not have any data in it and display it on a sheet. But the only thing wrong with this code is it does not give the true last row. Thus throwing my count off. Any Ideas?
    Last edited by chrispulliam; 05-21-2010 at 01:50 AM. Reason: This is now fixed!

  2. #2
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: COUNTIF Issues count blank cells among existing data

    well try using countblank instead of countif

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Marion, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: COUNTIF Issues count blank cells among existing data

    This produces the same results. It does not specify what my last row of data actually is.

  4. #4
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: COUNTIF Issues count blank cells among existing data

    well can you upload a sample file for me to take a look at it

  5. #5
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: COUNTIF Issues count blank cells among existing data

    =COUNTIF('2999'!BU:BU,"")

    Just try this formula once and see if it solves your problem

  6. #6
    Registered User
    Join Date
    05-13-2010
    Location
    Marion, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: COUNTIF Issues count blank cells among existing data

    Sure here you go. My formulas are in the State Count sheet and under the UNKNOWN Area
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-13-2010
    Location
    Marion, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: COUNTIF Issues count blank cells among existing data

    That last formula produced the same results. I attached a sheet with my data in it for you to take a look.

  8. #8
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Smile Re: COUNTIF Issues count blank cells among existing data

    See the attached sheet for solution.

    What I have done is Column Named Inclusion I have used the following formula
    =IF(BU2="",ROW(),"") which will give me all the row numbers where the cell is in Blank under the Column named State.

    Then you can use either simple Min(Column Named Inclusion) or Max(Column Named Inclusion) to find the first and last blanks in Column named State. In case you want to the complete list the same has been provided in Column BW

    Do let me know if you are satisfied with the solution.

    Regards
    Veejar
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-13-2010
    Location
    Marion, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: COUNTIF Issues count blank cells among existing data

    I modified your code a little bit
    Please Login or Register  to view this content.
    and this is what is displaying on my page
    Please Login or Register  to view this content.
    I did this so I could just count the rows that have a zero value in them. This seems to work just fine. Thanks for your help and pointing me in the right direction!

  10. #10
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: COUNTIF Issues count blank cells among existing data

    you ware welcome

+ 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