Countif Function w/ multiple Criteria

L

LaTanya

I am trying to count the occurances on the following labels in a row

LOA, TRN,VAC

I can only get 1 of the lable to return the number I need to added the other
2, this is the formula I used

=COUNTIF(K226:X226,"TRN")

But I need it to be something like this to return a value of 3
=COUNTIF(K226:X226,"TRN,VAC,LOA")

Active LOA Active Active Active Active Active Active Active Active Active TRN VAC Active
 
J

John C

=SUMPRODUCT(N(K226:X226={"TRN";"VAC";"LOA"}))

Note the semicolons in the range, and not the commas. You need the
semicolons because you are looking at a row.
 
L

LaTanya

Thank you so much that worked
LaTanya

John C said:
=SUMPRODUCT(N(K226:X226={"TRN";"VAC";"LOA"}))

Note the semicolons in the range, and not the commas. You need the
semicolons because you are looking at a row.
 

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

Top