Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Countif

Status
Not open for further replies.

sdrp

MIS
Nov 7, 2003
13
GB
Hi Guys,

Me again!

I'm trying to use the countif function, but with two contraints. Those being:

If a cell in column a = "test" and count the number of cells containing "test2" in column b.

I've tried to work around this, but can't get it to work,, any ideas?

Cheers
 
Two ways

use a countif(....) + countif(....)

or possibly use the and statement

countif(and(....,....))

let me know if they work

dyarwood
 
Using column c
=IF(A1="test",IF( B1 = "test2",1,0))
then sum the result
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top