+ Reply to Thread
Results 1 to 4 of 4

!HELP! how to count the number of records excluding blank cells

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    PH
    MS-Off Ver
    Excel 2010
    Posts
    2

    !HELP! how to count the number of records excluding blank cells

    I have this excel report,
    Sheet1 contains Column State with values {size1,n/a,size3,size1,size3,size2,"","","",}
    Sheet2 contains Column Total which should count size3 occurrences from Sheet1.

    I have the following formula:
    =COUNTA(SIRs_APT!A4:A302)

    but i wanted to exlcude "n/a" occurrence from the count.

    So i did this formula:
    =COUNTIF(SIRs_AT!B2:B298,"<>*Rejected*")

    but the problem is the current rows with data is only up to 10 rows. Hence, the count above includes the black rows which satisfied <> rejected condition. I wanted to retain the blank rows for future purposes.

    Please help.


  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: !HELP! how to count the number of records excluding blank cells

    you're explanation is confusing (to me anyway). perhaps you you could countif() based on <>""

    If that doesnt work, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: !HELP! how to count the number of records excluding blank cells

    hi eksel, welcome to the forum. if you are indeed using Excel 2010, try:
    =COUNTIFS(SIRs_APT!B2:B298,"<>*Rejected*",SIRs_APT!B2:B298,"<>")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    PH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: !HELP! how to count the number of records excluding blank cells

    Quote Originally Posted by FDibbins View Post
    you're explanation is confusing (to me anyway). perhaps you you could countif() based on <>""

    If that doesnt work, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    hehehe..i re-read my post.. got myself confused as well..hahaha I'll try to upload to provide one sample workbook. thanks Fdibbins

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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