I need a formula to count depending on conditions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to be able to count the number of times a code, say UO, occurs in a
column, but only for rows which have certain text in another column.

So for example, the number of time UO appears in column A, when Creative
Technology is in Column B in the example below:

A B

UO Sound & Music for Interactive Games
O Information Management
UF Information Studies
UO Creative Technology
UF Information Systems
UF Games Design
UO Creative Technology
UF Creative Technology

Any suggestions would be appreciated!
 
I bet you get a flurry of answers :-)

=SUMPRODUCT(--(A1:A8="UO"),--(B1:B8="Creative Technology))

or

=SUMPRODUCT((A1:A8="UO")*(B1:B8="Creative Technology))
 
Maybe you could use column C to tell you if column A contains the text you
want AND if column B contains the other text. Then if C is equal to, for
instance, "TRUETRUE", it means it's a match. Then you can use
"=count.if(C:C;"TRUETRUE")"



...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top