ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count cell A1 only if cell B2 = Yes (https://www.excelbanter.com/excel-worksheet-functions/247687-count-cell-a1-only-if-cell-b2-%3D-yes.html)

Frustrated

Count cell A1 only if cell B2 = Yes
 
Here is my current formula that counts each sale my reps make but now i need
to only count the sale only if cell B is "yes" and not count if cell b is
"No" I have tried IF formulas but i just cant get it worked out. Please help
Current Formula that counts my sales reps. =COUNTIF($A$19:$A$3703, A10)

Eva

Count cell A1 only if cell B2 = Yes
 
Try this
COUNTIF($A$19:$A$3703, "yes")

--
Click Yes if correct

"Frustrated" wrote:

Here is my current formula that counts each sale my reps make but now i need
to only count the sale only if cell B is "yes" and not count if cell b is
"No" I have tried IF formulas but i just cant get it worked out. Please help
Current Formula that counts my sales reps. =COUNTIF($A$19:$A$3703, A10)


Peo Sjoblom[_3_]

Count cell A1 only if cell B2 = Yes
 
If a yes would always be a sale why not just count the yes in B instead? If
A can be blank and B yes use



=SUMPRODUCT(--($A$19:$A$3703<""),--($B$19:$B$3703="Yes"))


--


Regards,


Peo Sjoblom


"Frustrated" wrote in message
...
Here is my current formula that counts each sale my reps make but now i
need
to only count the sale only if cell B is "yes" and not count if cell b is
"No" I have tried IF formulas but i just cant get it worked out. Please
help
Current Formula that counts my sales reps. =COUNTIF($A$19:$A$3703, A10)





All times are GMT +1. The time now is 05:47 PM.

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