+ Reply to Thread
Results 1 to 3 of 3

CountIF with multiple conditions one of which needs an OR.

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Solihull
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lightbulb CountIF with multiple conditions one of which needs an OR.

    Afternoon hopefully someone can help me with this issue i am having with a spreadsheet.

    I need to write a formulae that counts entries that meet a couple of criteria one of which needs an OR.

    I have searched many threads that say OR and countifs dont go and suggest using SUMPRODUCT but I cant seem to make it fit.

    I need to count records that are male in the gender column and have a value of 4 or 33 in another column.

    Any ideas I'm at my wits end.

    Cheers

    Paul

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: CountIF with multiple conditions one of which needs an OR.

    welcome to the forum, Paul something like:
    Data Range
    A
    B
    1
    male
    4
    2
    male
    33
    3
    female
    33
    4
    male
    10
    =SUM(COUNTIFS(A:A,"male",B:B,{4,33}))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-14-2014
    Location
    Solihull
    MS-Off Ver
    Excel 2010
    Posts
    2

    Thumbs up Re: CountIF with multiple conditions one of which needs an OR.

    Thank you so much for this that does EXACTLY what i needed.

    Cheers

    Paul

+ 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. countif with multiple conditions
    By vancoservices in forum Excel General
    Replies: 12
    Last Post: 06-16-2010, 04:16 PM
  2. COUNTIF with multiple conditions
    By kchocho in forum Excel General
    Replies: 2
    Last Post: 12-30-2009, 05:53 PM
  3. Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  4. [SOLVED] Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. Countif w/ multiple conditions
    By mjack003 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2005, 08:13 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