+ Reply to Thread
Results 1 to 5 of 5

Thread: 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
    =COUNTIF('Master data'!BN$6:BN$156,CONCATENATE("<=",$B19))
    , 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 Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472
    Hi,

    Try this:

    =SUMPRODUCT(('Master data'!BN$6:BN$156<=$B19)*('Master data'!P$6:P$156 = "someText"))
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  3. #3
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    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
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

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

  5. #5
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    Here is a nice explanation on this fucntion
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

+ 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
    Replies: 9
    Last Post: 04-13-2010, 05:54 PM
  2. using COUNTIF to check against two conditions
    By paul10r in forum Excel Worksheet 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 Worksheet Functions
    Replies: 7
    Last Post: 03-07-2008, 07:22 AM
  4. COUNTIF Function using more than one criterion
    By ary in forum Excel Worksheet Functions
    Replies: 5
    Last Post: 07-19-2007, 05:14 AM
  5. Nesting a countif function
    By kevinr1 in forum Excel Worksheet Functions
    Replies: 1
    Last Post: 02-20-2007, 08: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.2.0