ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Trouble Counting how many times a Cell Value Occurs when Condition isin a Row and not a Column (https://www.excelbanter.com/excel-programming/451355-trouble-counting-how-many-times-cell-value-occurs-when-condition-isin-row-not-column.html)

Munster

Trouble Counting how many times a Cell Value Occurs when Condition isin a Row and not a Column
 
Here's an example of the issue I am running to

A B C D
1 GolfA Birdie Par Bogey
2 GolfB Bogey Birdie Par
3 GolfA Par Bogey Birdie
4 GolfB Bogey Double Bogey Bogey

I can't seem to find the formula that will count how many times Birdie appears for GolfA in Column A

Claus Busch

Trouble Counting how many times a Cell Value Occurs when Condition is in a Row and not a Column
 
Hi,

Am Fri, 25 Mar 2016 23:26:17 -0700 (PDT) schrieb Munster:

A B C D
1 GolfA Birdie Par Bogey
2 GolfB Bogey Birdie Par
3 GolfA Par Bogey Birdie
4 GolfB Bogey Double Bogey Bogey


try:

=SUMPRODUCT((A1:A10="GolfA")*((B1:B10="Birdie")+(C 1:C10="Birdie")+(D1:D10="Birdie")))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional

MM[_5_]

Trouble Counting how many times a Cell Value Occurs whenCondition is in a Row and not a Column
 
On Saturday, March 26, 2016 at 2:26:30 AM UTC-4, Munster wrote:
Here's an example of the issue I am running to

A B C D
1 GolfA Birdie Par Bogey
2 GolfB Bogey Birdie Par
3 GolfA Par Bogey Birdie
4 GolfB Bogey Double Bogey Bogey

I can't seem to find the formula that will count how many times Birdie appears for GolfA in Column A




A similar approach would be:

=SUMPRODUCT(((A1:A4="GolfA")*(B1:D4="Birdie")))

Cheers
Mark


All times are GMT +1. The time now is 12:16 AM.

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