+ Reply to Thread
Results 1 to 4 of 4

counting when two conditions apply

  1. #1
    Registered User
    Join Date
    09-11-2010
    Location
    N Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    counting when two conditions apply

    Hi,
    I know of the function 'countifs', but this only is from ver2007. I use 2003 and this function is not available.
    I would be grateful if someone could point me in the direction of applying the same type of rules in ver2003?

    ie. In words, "count all the learners if the date is less than 12/03/2008 and is red. Need to ignore blank cells". See attached.

    I tried sumproduct, but this counts blank cells

    Thanks in Advance.

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: counting when two conditions apply

    Hello Mark,

    You can add an extra test to exclude blanks, e.g. use this formula in H3 copied across and down

    =SUMPRODUCT(($B$3:$B$10=$G3)*($C$3:$C$10=H$2)*($D$3:$D$10<=$G$1)*($D$3:$D$10<>""))

    where G1 contains your cut-off date 12/03/2008
    Audere est facere

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: counting when two conditions apply

    Try:

    =SUMPRODUCT(--($B$3:$B$10=$G3),--($C$3:$C$10=H$2),--($D$3:$D$10<>""),--($D$3:$D$10<=DATE(2008,3,12)))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: counting when two conditions apply

    You seem to have three conditions.

    Try:

    =SUMPRODUCT(($B$3:$B$10=$G3)*($C$3:$C$10=H$2)*($D$3:$D$10<>"")*($D$3:$D$10<=$D$3))

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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