COUNTIF with multiple text criteria
Try this:
=SUMPRODUCT((A$1:A$100="Word1")*(B$1:B$100="Word2" )) * factor
Note that if you are using Excel 2003 or earlier then you can't use
full-column references with SUMPRODUCT, so adjust those given to suit
your data.
It would be better to put Word1 and Word2 in two different cells (eg
C1 and D1), then you could have this formula:
=SUMPRODUCT((A$1:A$100=C1)*(B$1:B$100=D1))* factor
The advantage is that you don't have to change the formula to check
out different words, and by having other words in columns C and D then
you can just copy the formula down.
Hope this helps.
Pete
On Mar 2, 4:15*pm, Richard wrote:
Hi all
I need to count all instances of Word1 in column A, but only where
column 2 contains Word2. (and then multiply the result by a factor of
n - if that's possible?)
I've got as far as: =COUNTIF(A:A,"Word1")*10 - but it stops working
when I add the column 2 criteria.
Have tried using =SUMPRODUCT but think that is for numbers only?
Hope my requirements are possible.
thanks in advance
Richard
|