+ Reply to Thread
Results 1 to 3 of 3

Using multiple conditions with countif

  1. #1
    Registered User
    Join Date
    10-12-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    8

    Using multiple conditions with countif

    Hi,

    I have the following data.
    A B C D
    4 2 6 1
    5 1 2 0
    6 2 4 0
    7 2 8 1
    8 2 2 1
    9 3 1 1

    How do I count the number of rows that meet the following criteria?

    D1:D6 = 1 & (A1:A6 - B1:B6) > 2 & (A1:A6)-(C1:C6) > 2

    Thanks!

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Using multiple conditions with countif

    Please try
    =SUMPRODUCT((D1:D6=1)*(A1:A6-B1:B6>2)*(A1:A6-C1:C6>2))

  3. #3
    Registered User
    Join Date
    10-12-2016
    Location
    US
    MS-Off Ver
    2013
    Posts
    8

    Re: Using multiple conditions with countif

    Quote Originally Posted by Bo_Ry View Post
    Please try
    =SUMPRODUCT((D1:D6=1)*(A1:A6-B1:B6>2)*(A1:A6-C1:C6>2))
    Thank you!

+ 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] CountIF with multiple conditions
    By rz6657 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2017, 10:40 AM
  2. CountIf with multiple conditions
    By robbied81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2010, 07:24 AM
  3. COUNTIF - multiple conditions
    By allphin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2005, 12:05 PM
  4. Multiple conditions on a countif
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Countif w/ multiple conditions
    By mjack003 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2005, 08:13 PM

Tags for this Thread

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