+ Reply to Thread
Results 1 to 13 of 13

Count function with exclusions

Hybrid View

  1. #1
    Registered User
    Join Date
    12-01-2006
    Posts
    31

    Count function with exclusions

    Hi all,

    I am trying to setup a formula that does the following:

    Sheet 1 contains the formula. It performs a COUNT on a column on Sheet 2 and dislpays the result on sheet 1. I need to tell Excel to omit from the COUNT list, all entries containing the word "Free".

    Inm other words, i need a count performed on column A of sheet 2 but the result must ignore all entries within that column A that contain the word Free in it.

    Is this possible?

    Please advise.

    Many thanks

    D

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    =COUNTIF(Sheet2!A1:A10,"<>"&"Free")
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-01-2006
    Posts
    31
    wow, very quick reply. And it works excellently too.

    Million thanks Carim.

    D ;-)

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Thanks for the feedback

    Carim

  5. #5
    Registered User
    Join Date
    12-01-2006
    Posts
    31
    Carim,

    I've realised soemthing. Its not entirely wokring properly now. If i use your command, i get a value. But if i go to the other worksheet and add a "valid" number, the sum on Sheet 1 doesn't increment. It was working b4, but its not adding to the count if i add more entries on Sheet 2. Why would this be, if before it was working fine?

    Please advise.

  6. #6
    Registered User
    Join Date
    12-01-2006
    Posts
    31
    ok, what seems to be happening is that if i enter a numerical value, the COUNTIF figures increases. Thats good. However, if i add any sort of word (text) even if nothing near the word "Free", the counter remains still. I thought the code you gave me would only filter out the keywird Free?

    Plase advise.

    Thanks

    D

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by de049
    Hi all,

    I am trying to setup a formula that does the following:

    Sheet 1 contains the formula. It performs a COUNT on a column on Sheet 2 and dislpays the result on sheet 1. I need to tell Excel to omit from the COUNT list, all entries containing the word "Free".

    Inm other words, i need a count performed on column A of sheet 2 but the result must ignore all entries within that column A that contain the word Free in it.

    Is this possible?

    Please advise.

    Many thanks

    D
    =COUNTIF(A1:A7,"<>*free*")
    or
    =SUMPRODUCT(--NOT(ISNUMBER(SEARCH("free",A1:A7))))

+ 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