Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[Excel] - Count

Status
Not open for further replies.

GlasgowSwan

IS-IT--Management
Jun 17, 2008
8
GB
A B
1 car red
2 bus red
3 car green
4 car red

I would like to count the number of red cars in the grid.

Could someone help with a formula? (i have used the above as an example however the really one is likley to have hundreds of rows)

Thanks
 
[tab][COLOR=blue white]=SumProduct((A1:A4="car") * (B1:B4="red"))[/color]

(I know, sumproduct doesn't sound like it will do what you want.... but just try it)

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top