ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count based on criteria from two different columns (https://www.excelbanter.com/excel-discussion-misc-queries/165846-count-based-criteria-two-different-columns.html)

ba374

Count based on criteria from two different columns
 
Hello,

I am sure this is a simple formula but for the life of me I can not remember.

Here is my scenario:

Column C (c6:c70) contains the data "won" or "lost"
Column F (f6:f70) contains the data "4wd loaders" "backhoes", etc.

I need to count, in another column, how many backhoes were lost and so on.

Thanks,
Brandy

Ron Coderre

Count based on criteria from two different columns
 
Try this:

=SUMPRODUCT(--(C6:C70="lost"),--(F6:F70="backhoes"))

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"ba374" wrote in message
...
Hello,

I am sure this is a simple formula but for the life of me I can not
remember.

Here is my scenario:

Column C (c6:c70) contains the data "won" or "lost"
Column F (f6:f70) contains the data "4wd loaders" "backhoes", etc.

I need to count, in another column, how many backhoes were lost and so on.

Thanks,
Brandy




JP[_3_]

Count based on criteria from two different columns
 
Try this array formula (ctrl-shift-enter):

=COUNT((C6:C70="lost")*(F6:F70="backhoes"))


HTH,
JP

On Nov 13, 11:33 am, ba374 wrote:
Hello,

I am sure this is a simple formula but for the life of me I can not remember.

Here is my scenario:

Column C (c6:c70) contains the data "won" or "lost"
Column F (f6:f70) contains the data "4wd loaders" "backhoes", etc.

I need to count, in another column, how many backhoes were lost and so on.

Thanks,
Brandy





All times are GMT +1. The time now is 04:05 AM.

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