+ Reply to Thread
Results 1 to 5 of 5

COUNTIF function with two conditions

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12

    COUNTIF function with two conditions

    Hi

    I need to know a way of doing a COUNTIF function with two conditions inside it, my current formula is
    Please Login or Register  to view this content.
    , and I want to add another check to range 'Master data'!P$6:P$156 = "someText". I only want it to be counted if both conditions are true.

    I hope this makes sense,

    Thanks in advance

    Dale.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    Try this:

    =SUMPRODUCT(('Master data'!BN$6:BN$156<=$B19)*('Master data'!P$6:P$156 = "someText"))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    try =sumproduct((range1=condition1)*(range2=condition2))

    This kind of question has already been asked many times on the forum. Forum's Search should yield lots of results)
    Cheers

  4. #4
    Registered User
    Join Date
    09-25-2008
    Location
    Leeds
    Posts
    12
    Thanks guys! Much appreciated!

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Here is a nice explanation on this fucntion

+ 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. How does this code output the coefficients of a trendline?
    By gshock in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2010, 05:54 PM
  2. using COUNTIF to check against two conditions
    By paul10r in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2008, 10:48 AM
  3. COUNTIF function using a drop down list source data as the criteria.
    By Stevie-B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-07-2008, 08:22 AM
  4. COUNTIF Function using more than one criterion
    By ary in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-19-2007, 05:14 AM
  5. Nesting a countif function
    By kevinr1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2007, 09:57 AM

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