+ Reply to Thread
Results 1 to 3 of 3

Countif over several worksheets

  1. #1
    Barb Reinhardt
    Guest

    Countif over several worksheets

    I'd like to have a countif equation over the range Sheet1:AA2, Sheet2:AA2,
    Sheet3:AA2 and I want it count anything that is not equal to 2. How would I
    write this.

    Thanks,
    Barb Reinhardt


  2. #2
    Gary''s Student
    Guest

    RE: Countif over several worksheets

    COUNTIF() does not work over dis-joint ranges.

    Try:

    =(Sheet2!AA2<>2)+(Sheet3!AA2<>2)+(Sheet1!AA2<>2)
    --
    Gary's Student


    "Barb Reinhardt" wrote:

    > I'd like to have a countif equation over the range Sheet1:AA2, Sheet2:AA2,
    > Sheet3:AA2 and I want it count anything that is not equal to 2. How would I
    > write this.
    >
    > Thanks,
    > Barb Reinhardt
    >


  3. #3
    Bob Phillips
    Guest

    Re: Countif over several worksheets

    =SUMPRODUCT(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!AA2"),"<>2"))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Barb Reinhardt" <[email protected]> wrote in message
    news:[email protected]...
    > I'd like to have a countif equation over the range Sheet1:AA2,

    Sheet2:AA2,
    > Sheet3:AA2 and I want it count anything that is not equal to 2. How

    would I
    > write this.
    >
    > Thanks,
    > Barb Reinhardt
    >




+ 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