+ Reply to Thread
Results 1 to 7 of 7

I want to be able to apply the filters to my count()

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    15

    Question I want to be able to apply the filters to my count()

    Hi all. I have just gotten started on doing these things in Excel, so I hope you will have patient will low level questions!

    I am trying to build a CRM-document for sales. I have an order list which contains fields like customer number, customer name, category, status, contact name, and so on.
    Now I’m building a statistics tab, where I for example want an answer to the question “How many customers with the status “OK” do I have?”. So long fine, using
    Please Login or Register  to view this content.
    Here comes my challenge. The customer list has a nice filtering, so I can filter on for example customers in Category 3. (Normal excel filtering) This I want to be able to use in my statistics as well. I want to be able to answer the question “How many customers in category 3 with the status “OK” do I have?”

    Basically, I would like to see how many customers I have within every status (let’s call them Status1, Status2, Status3), when I do certain filters in the customer tab. This should look somewhat like this:

    Status Count
    Status1 24
    Status2 58
    Status3 29

    (And above values should change when I change filtering on specific parameters from the customer list.)

    Maybe a little bit messy but I hope you understand

    Thank you in advance!

  2. #2
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: I want to be able to apply the filters to my count()

    Hi Erison,

    Not sure on the need of "filter" part and not sure if this function can be of any help. you may give a try

    try using countifs function..for example..if your category is in column B
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: I want to be able to apply the filters to my count()

    Thank you! This does actually work But if I would like it more graphical, like an actual scroll down, with possibility of filtering one or more columns. (Just like the data -> filter -function works...) Is there a way of doing it that way?

  4. #4
    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: I want to be able to apply the filters to my count()

    not sure if i understand your requirement, but perhaps you could put the "OK" and "Status1" on a dropdown, and then let vidy's formula reference them, instead of hard-coding them?
    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

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: I want to be able to apply the filters to my count()

    You can work with the formula subtotal.

    You can work with a pivot table.

    You get better help if you post an Excel-example of your workbook, without confidential information.

    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.

    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: I want to be able to apply the filters to my count()

    FDibbins, thanks the dropdown would work when I have static number of options, but I'm also looking for some more "automated" way. I also want to be able to choose more than one criteria (such as the filter function).

    Examplefile attached, does that make a more clear picture?

    examplefile.xlsx

    Kind Regards,
    Erik

  7. #7
    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: I want to be able to apply the filters to my count()

    this may not be exactly what you want, but the table i created gives you the flexibilty to change your criteria as you need.

    I only set it up for the 1st 2 columns, but if you want to adjust the ranges for other columns, its easy enough to do. you could even make up multiple tables if you want
    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)

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