+ Reply to Thread
Results 1 to 9 of 9

Count formula with multiple conditions

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    41

    Count formula with multiple conditions

    Hello,

    First off, somehow I cannot add my attachment. When I click on the attachment icon, a thin blank rectangle pops up but i can't click on anything. If you know how I can fix this, let me know and I will try again to add the spreadsheet.

    I am adding a screen shot.

    I need help with the following:

    1. Cell C2 - I need the total count of everything in Column N and O that does not equal "exempt"

    2. Cell N3 - I need the total count for everything in column O that does not equal "exempt" IF column M equals "DIR17-1ST"

    3. Cell N4 - I need the total count for everything in Column N that equals a date or the term "Shut in" IF column M equals "DIR17-1ST" and "DIR17-ANN"

    4. Cell N5 - I need the total count for everything in Column O that equeals a date or the term "Shut in"

    Thank you so much! I can get the standard countif but when I try to add other conditions, it just spits back #N/A.Image 1.PNG

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Count formula with multiple conditions

    I will take a look at this for you, and mock something up to post back.

    PS: Did you look at the attachment instructions at the bottom of the posts.?
    Uploading an attachment will assist Forum Members in finding the correct Solution for you. Create a dummy worksheet if necessary, add your start data and show where / what your expected results should be. TO ADD A FILE:

    Go to 'Advanced. click on 'Manage Attachments. Select 'Browse & Choose your file, Select 'Upload and then close the Attachment window.

  3. #3
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Count formula with multiple conditions

    I used these 3 formulas and 1 regular countif to meet your criteria.

    =SUM(COUNTIFS(G40:G46,"<"&TODAY(),E40:E46,{"DIR17-1st"}))
    =SUM(COUNTIFS(G41:G47,"<"&TODAY(),E41:E47,{"DIR17-1st";"DIR17-ANN"}))+COUNTIF(G41:G47,G35)
    =COUNTIF(G41:G47,G35)+COUNTIFS(G41:G47,"<"&TODAY())
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Count formula with multiple conditions

    Your attachment doesn't make sense...

    I'll try the formulas.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Count formula with multiple conditions

    Quote Originally Posted by apmi View Post
    Hello,

    First off, somehow I cannot add my attachment. When I click on the attachment icon, a thin blank rectangle pops up but i can't click on anything. If you know how I can fix this, let me know and I will try again to add the spreadsheet. ...
    Hello apmi.

    Try instead

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),

    be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  6. #6
    Registered User
    Join Date
    03-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Count formula with multiple conditions

    Attachment attempt
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Count formula with multiple conditions

    Thank you!!!

  8. #8
    Registered User
    Join Date
    03-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Count formula with multiple conditions

    Please see below foe my spreadsheet

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Count formula with multiple conditions

    In C2 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In N3 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    N4 and N5 are problems. N4 references column N which will return a circular reference error. N4 and N5 both are to test for dates. If you are not aware of it dates are numbers representing days elapsed starting at 1/1/1900. Today (8/2/2019) that number is 43679. The formatting is cosmetic. This means any number in columns N:O will qualify.

    You will need to limit the range references in formula N4 and find a way to define what numbers (typically a number/date range) in both N and O.

+ 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 if formula with multiple conditions in same coloumn
    By kazun909 in forum Excel General
    Replies: 4
    Last Post: 09-12-2014, 06:48 AM
  2. [SOLVED] Count IF Multiple conditions
    By buggzero in forum Excel General
    Replies: 4
    Last Post: 08-24-2012, 04:55 PM
  3. Replies: 2
    Last Post: 07-01-2012, 03:54 AM
  4. Array formula to count based on multiple conditions
    By markrennolds in forum Excel General
    Replies: 1
    Last Post: 11-09-2010, 05:56 PM
  5. Replies: 4
    Last Post: 04-07-2010, 11:04 AM
  6. Count if with Multiple conditions
    By neilpateluk in forum Excel General
    Replies: 4
    Last Post: 12-16-2008, 07:07 AM
  7. Count unique logs with multiple conditions of multiple sheets
    By Robert Bob in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-12-2007, 12:49 AM

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