Hi All-
I'm looking to do this statement
=countif(a:a,"NOT IN" b2:b10)
So how do I do this?
Hi All-
I'm looking to do this statement
=countif(a:a,"NOT IN" b2:b10)
So how do I do this?
Last edited by NBVC; 01-27-2010 at 12:03 PM.
Try
=COUNTA(A:A)-SUMPRODUCT(--ISNUMBER(MATCH(A:A,B2:B10,0)))
however, it is more efficient to use a defined range instead of A:A when using Sumproduct()..
Better yet, would be to add a helper column to return TRUE/FALSE matches at each row of column A and then use Countif(C:C,FALSE) where Column C contains TRUE/FALSE result of formula: =ISNUMBER(Match(A1,$B$2:$B$10,0)) copied down....
Last edited by NBVC; 01-27-2010 at 12:06 PM.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Hi,
The COUNTIF() function only has two elements. If you're trying to sum the amounts in B2:B10 rather than count them you should be using a SUMIF()
HTH
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Would this work as a count all in column A who's value is in column B:
=sumproduct(countif(A:A,B:B))
Yes... but slow
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks