+ Reply to Thread
Results 1 to 6 of 6

Count multiple conditions

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Count multiple conditions

    Excel 2003
    I have a database in which A=Monday to Friday ,C=P and Rs, E=window number 1-4 ,and F=Customers name eg "A.Smith. I need a formula that will count have many cutomers in mon/p/1,mon/p/2 ect but in F the may be some blanks so the formula must not count them, can you help.
    Steve

  2. #2
    Forum Contributor
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2007
    Posts
    122

    Re: Count multiple conditions

    can you upload a sample file, with the desired output?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count multiple conditions

    something like:

    =SUMPRODUCT(($A$2:$A$100="Mon")*($C$2:$C$100="P")*($E$2:$E$100=1)*($F$2:$F$100<>""))

    you can replace criteria with cell references containing those criteria... and then copy down

    You can use a Pivot table also...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Count multiple conditions

    nbvc
    your formula is great but returns the wrong value it says 20 when there are 39 names in m/p/1 any ideas and sorry dont know what a pivot table is

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count multiple conditions

    Make sure that some of those entries don't have extra spaces in them. Also make sure your ranges cover the whole database.

    Here is some info on Pivot Tables... they are quick and easy way to organize and summarize data:

    http://peltiertech.com/Excel/Pivots/

  6. #6
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Count multiple conditions

    Thank you all for your help nice one

+ 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