Need help with CountIF function

F

Flo

Hello,

Please help. I have a columne A with department codes A, B, C, ... the
department codes are multiple lines, column B with numbers when there are
activity in that department. Can I do a countif function or other function
to summerize how many activity each department?
 
L

Luke M

To count how many times there is activity for dept A:
=SUMPRODUCT(--(A2:A100="A"),--(ISNUMBER(B2:B100))

To sum the numbers in column B associated with dept A:
=SUMIF(A:A,"A",B:B)
 

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