1

enter image description here

=COUNTIF(AND(A:A="01.01.2015";B:B="torsvik";ISNUMBER(SEARCH("wt";C:C)));TRUE)

I would like to count "wt"s on "01.01.2015" and "torsvik", but it is giving an error. Could you give your advice ?

if a is true , and b is true and c is true , count it . in my example, it should be 2.

Saba
  • 13
  • 3

2 Answers2

0

As was already mentioned, you can use COUNTIFS to do this quite easily. Here the formula I would use:

=COUNTIFS(B1:B3;"torsvik";A1:A3;"01.01.2015")

If the date is an actual date format, you can also simply link to a cell that is of the same format where you write the value you are looking for.

rohrl77
  • 3,277
  • 11
  • 47
  • 73
0

If you formatted your cells in Column A as text, then use the formula below:

=COUNTIFS(A:A,"=01.01.2015",B:B,"=torsvik",C:C,"=*wt*")

If your settings are in European version (as mentioned here by rohl), then use the formula below :

=COUNTIFS(A:A;"=01.01.2015";B:B;"=torsvik";C:C;"=*wt*")

As you can see, I am using the wildcard * to check for all types of wt in column C:

enter image description here

When simulating your table's data a little, and changing "torsvik" to "marco" the result changes to 1, see image below:

enter image description here

If you formatted your cells in Column A as Date (as in "dd.mm.yyyy") , then use the formula below:

=COUNTIFS(A:A,"=1/1/2015",B:B,"=torsvik",C:C,"=*wt*")

Once again, for European settings, change to :

=COUNTIFS(A:A;"=1/1/2015";B:B;"=torsvik";C:C;"=*wt*")

Or, if your date settings are also different, maybe you need to modify to:

=COUNTIFS(A:A;"=01.01.2015";B:B;"=torsvik";C:C;"=*wt*")

See image below: enter image description here

Shai Rado
  • 33,032
  • 6
  • 29
  • 51