ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   counting data in one column and match with data in another column (https://www.excelbanter.com/excel-discussion-misc-queries/116300-counting-data-one-column-match-data-another-column.html)

jenny

counting data in one column and match with data in another column
 
Cant do me home work!!! I need to count deciduous tree sales (column2) in the
North East (colum2) I've tried every count function going but am really stuck
J

Trevor Shuttleworth

counting data in one column and match with data in another column
 
J

have a look at SUMPRODUCT

Something like:

=SUMPRODUCT((A1:A15="deciduous")*(B1:B15="NE")*(C1 :C15))

or

=SUMPRODUCT(--(A1:A15="deciduous"),--(B1:B15="NE"),(C1:C15))

Checks column A (1) for "deciduous", column B (2) for "NE" and sums column C
(3) where both conditions are true.

Regards

Trevor


"Jenny" wrote in message
...
Cant do me home work!!! I need to count deciduous tree sales (column2) in
the
North East (colum2) I've tried every count function going but am really
stuck
J





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

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