+ Reply to Thread
Results 1 to 6 of 6

Count values in column but exclude filtered rows

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Madison, WI
    MS-Off Ver
    Excel 2013
    Posts
    3

    Question Count values in column but exclude filtered rows

    I am trying to count the number of times that any one of the following values occurs in a column: "1" "2" "2i" or "P"

    I tried using =COUNTIF(BD2:BD45,"P")+COUNTIF(BD2:BD45,"2")+COUNTIF(BD2:BD45,"2!")+COUNTIF(BD2:BD45,"1"). However, if I apply a filter to one of my other columns, the result does not change to reflect the filtered out rows.

    How can I make this work?

    I am using Excel 2013.

    Thanks.

  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,933

    Re: Count values in column but exclude filtered rows

    Hi and welcome to the forum

    If you are using 2013, please update your profile accordingly.

    Take a look at using the subtotal() function, there are many options under that
    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
    Registered User
    Join Date
    07-24-2013
    Location
    Madison, WI
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Count values in column but exclude filtered rows

    I still can't seem to figure it out. I would be grateful for any further detail you could offer. Thank you!!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count values in column but exclude filtered rows

    Whether arriving the result using a helper column is ok for you?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    07-24-2013
    Location
    Madison, WI
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Count values in column but exclude filtered rows

    I'm not sure how/whether it would be possible to use a helper column. I need to run this calculation on about 100 different columns. To elaborate a little bit, I have a row of student names and a column for each day that they should have attended class. There are 5 different possible values in this column (1, 2, 2i, P, and A). I just need a total of how many times 1, 2, 2i, or P occurs in each column. This would tell me Total Daily Attendance which I use to compute an Average Daily Attendance for the month). Now, if I filter on gender=female, I want the Daily Attendance and Average Daily Attendance calculation to reflect just the attendance for female.

    I attached some sample data if it will help.

    Thanks!
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count values in column but exclude filtered rows

    May be check whether this helps you!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Domenic in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 11:05 AM
  2. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Replies: 27
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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