+ Reply to Thread
Results 1 to 4 of 4

COUNTIF with 2 conditions

Hybrid View

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    Bedford UK
    Posts
    2

    COUNTIF with 2 conditions

    Hi All,

    Very new to this, so if anybody can help it would be greatly appreciated. In summary I want to count all rows that have a value of today or earlier BUT the row is not closed. Here's what I've put together with errors:

    =COUNTIF($F4:$F24,"<="&TODAY()) AND ($G4:$G24,"<>""CLOSED")

    Any help would be great!

    Cheers

    JM5

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721
    Try using SUMPRODUCT like this

    =SUMPRODUCT((F4:F24<=TODAY())*(G4:G24<>"Closed"))

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT(($F4:$F24<=TODAY())*($F4:$F24<>"")*($G$4:$G$24<>"closed"))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    07-29-2008
    Location
    Bedford UK
    Posts
    2

    Thumbs up Thankyou

    What can I say!
    Fast response and sorted me out a treat, really appreciate it guys, thanks a bunch

    JM5

+ 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