+ Reply to Thread
Results 1 to 2 of 2

COUNT by 2 criteria

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    COUNT by 2 criteria

    . Basically I am trying to COUNT a field based on 2 criteria the 1st being it falls between a particular date range and the second criteria that the data in the cell says “EVENT”. Key thing is here I want it to define the date range from the data first.

    please help

    I have attached excel file to try to show what I want to do.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: COUNT by 2 criteria

    Hi.

    Try this in I4.

    =SUMPRODUCT(((B4:B36<=H4)*(B4:B36>=G4)*(C4:C36="EVENT")))

    Hope to helps you.

    & =SUMPRODUCT((($B$4:$B$36<=H4)*($B$4:$B$36>=G4)*($C$4:$C$36=F4)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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