+ Reply to Thread
Results 1 to 3 of 3

Count using 2 conditions, one of which being a "less than or equal to" - URGENT

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2006
    Posts
    17

    Exclamation Count using 2 conditions, one of which being a "less than or equal to" - URGENT

    I need a formula or a macro which will count using two conditions a range of cells. The problem i have one of the conditions is a "less than or equal to" a time.

    the formula below i have used but it gives a false count, either 0 or counts only one of the conditions

    =SUMPRODUCT((A1:A25="<=00:03")*(B1:B25="AM"))

    i have also used the 'Ctrl-shift-enter' aswel.

    any ideas??

  2. #2
    Bob Phillips
    Guest

    Re: Count using 2 conditions, one of which being a "less than or equal to" - URGENT

    =SUMPRODUCT(--(A1:A25<=--"00:03"),--(B1:B25="AM"))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "SamGB" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I need a formula or a macro which will count using two conditions a
    > range of cells. The problem i have one of the conditions is a "less
    > than or equal to" a time.
    >
    > the formula below i have used but it gives a false count, either 0 or
    > counts only one of the conditions
    >
    > =SUMPRODUCT((A1:A25="<=00:03")*(B1:B25="AM"))
    >
    > i have also used the 'Ctrl-shift-enter' aswel.
    >
    > any ideas??
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:

    http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=512601
    >




  3. #3
    Registered User
    Join Date
    02-07-2006
    Posts
    17
    Excellent! works like a treat

    Many Thanks
    Sam

+ 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