+ Reply to Thread
Results 1 to 5 of 5

Dual Criteria

  1. #1
    Registered User
    Join Date
    09-13-2004
    Posts
    3

    Dual Criteria

    Hi all,

    I am trying to make a formula look at a range and ignore 2 criteria but sum the rest.

    i.e:

    =sumif($c$3:$n$39,"<>03:45","<>07:50")

    what am I doing wrong?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    This can be done with the sumproduct formula

    =SUMPRODUCT(($C$3:$N$39)*($C$3:$N$39<>TIMEVALUE("03:45"))*($C$3:$N$39<>TIMEVALUE("07:50")))

    Ola Sandström

  3. #3
    Registered User
    Join Date
    09-13-2004
    Posts
    3
    thanks :o)

  4. #4
    Registered User
    Join Date
    09-13-2004
    Posts
    3
    sorry but this is givin me a #value response..
    I have copied and pasted the formula but is not working.

  5. #5
    Registered User
    Join Date
    02-02-2005
    Posts
    35

    Only a small tweak

    Olasa put you on the right track but you need to modify the time text string to
    hh:mm:ss format
    eg. "03:45:00"

    Then it is fine

    =SUMPRODUCT(($C$3:$N$39)*($C$3:$N$39<>TIMEVALUE("03:45:00"))*($C$3:$N$39<>TIMEVALUE("07:50:00")))
    or
    =SUMPRODUCT(($C$3:$N$39),--($C$3:$N$39<>TIMEVALUE("03:45:00")),--($C$3:$N$39<>TIMEVALUE("07:50:00")))

    RES

+ 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