+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Multiple Conditional Count Functions

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Multiple Conditional Count Functions

    Hello,

    I require help to create formulas with the following requirements. I have also attached an example of the worksheet.

    Tasks
    1. Count the number of "Good" and "Required" in the column "PM2 Required" based upon the following matches:
    Base location, Page, Section and Resp R&M column matches within a formula

    2. Count the number of "Good", "NA" and "Required" in the column "Heat Test Required" based upon the following matches:
    Base location, Page, Section and Resp R&M column matches within a formula

    3. Count the number of entries in column "OTSD NOMEM" based upon the following matches:
    Base location, Page, Section and Resp R&M column matches within a formula

    Note: I know that part of the formula to correctly count the number of entries (there could be more than one entry per cell) would be –
    SUM(IF(LEN(TRIM('Master'!j2:j199))=0,0,LEN(TRIM('Master'!j2:j199))-LEN(SUBSTITUTE('Master'!j2:j199," ",""))+1)) and to make the above array formula work, after typing in the formula, press ctrl+shift_enter

    3. Count the number of entries in column "Other Open NTFY" based upon the following matches:
    Base location, Page, Section and Resp R&M column matches within a formula

    Note: I know that part of the formula to correctly count the number of entries (there could be more than one entry per cell) would be - SUM(IF(LEN(TRIM('Master'!j2:j199))=0,0,LEN(TRIM('Master'!j2:j199))-LEN(SUBSTITUTE('Master'!j2:j199," ",""))+1)) and to make the above array formula work, after typing in the formula, press ctrl+shift_enter

    I thank you kindly in advance for your solutions!
    JN Morrow
    Attached Files Attached Files
    Last edited by J Morrow; 05-23-2011 at 03:01 AM. Reason: Thanks Marcol

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Multiple Conditional Count Functions

    With the large number of combinations this produces, have you considered using SUBTOTAL() and filtering your list?

    In J1 use the COUNTA option
    Please Login or Register  to view this content.
    e.g.
    If you filter
    "PM2 Required" for "Required"
    "Base Location" for "Base1"
    "Page" for "Aux_DH"
    "Section" for "Bridle"
    The function will return 10

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Multiple Conditional Count Functions

    If Post #2 doesn't suit your needs, try this workbook.

    The sheet "Lookups" has the unique values for various catagories.
    Each catagory is a named range.
    This is used for the drop-down validation lists in sheet "Data Returns" A2:D2
    You could make these lists dynamic.

    In this example in "Data Returns" E2
    Please Login or Register  to view this content.
    Gives the result based on your selection from the drop-downs, all four must be filled for the formula to return a result.

    Can you work with this?
    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