ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting text criteria (https://www.excelbanter.com/excel-worksheet-functions/51532-counting-text-criteria.html)

Belinda

Counting text criteria
 
I have two columns Column A contains contract numbers, i.e. s4802,
s5601--column b contains status words i.e. pending, approved, withdrawn. I
need a formula that will provide a count of each status by contact.

Peo Sjoblom

Counting text criteria
 
=SUMPRODUCT(--(A2:A100="s4802"),--(B2:B100="pending"))

or better

=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=D2))

where C2 holds the contract you want to check and D2 the status, that way
you won't have to edit the formula when you change the criteria

--

Regards,

Peo Sjoblom


"Belinda" wrote in message
...
I have two columns Column A contains contract numbers, i.e. s4802,
s5601--column b contains status words i.e. pending, approved, withdrawn.

I
need a formula that will provide a count of each status by contact.





All times are GMT +1. The time now is 12:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com