ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Counting (https://www.excelbanter.com/excel-worksheet-functions/117300-conditional-counting.html)

Ladyengineer

Conditional Counting
 
I have a large spreadsheet and need to know how I can count the instances of
the number "2" in one column only when the corresponding value in a different
column is "medium". Can someone help with this?

Ron Coderre

Conditional Counting
 
Try something like this example:

With
A1:A100 containing sizes: large, medium, small, etc
C1:C100 containing values: 1,2,5, 100, whatever

Then...this formula counts the combinations of Medium/2

D1: =SUMPRODUCT(--(A1:A100="medium"),--(C1:C100=2))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ladyengineer" wrote:

I have a large spreadsheet and need to know how I can count the instances of
the number "2" in one column only when the corresponding value in a different
column is "medium". Can someone help with this?



All times are GMT +1. The time now is 07:01 PM.

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