ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   conditional formulas (https://www.excelbanter.com/excel-worksheet-functions/22099-conditional-formulas.html)

deaundra

conditional formulas
 
please help!!!!!!!

Column B Column G
Barry Y

I would like to count how many times these two show together on a row. can
this be done?

John Mansfield

This formula counts how many times the combination of Barry and Y appear in
rows 1 - 5:

=SUMPRODUCT((B1:B5="Barry")*(G1:G5="Y"))

----
Regards,
John Mansfield
http://www.pdbook.com

"deaundra" wrote:

please help!!!!!!!

Column B Column G
Barry Y

I would like to count how many times these two show together on a row. can
this be done?


CLR

In a helper column, say X, put =b2&G2 and copy down as far as you have data
in B and G

Then in Z1 put

=countif(X:X,"BarryY")

Vaya con Dios,
Chuck, CABGx3



"deaundra" wrote in message
...
please help!!!!!!!

Column B Column G
Barry Y

I would like to count how many times these two show together on a row. can
this be done?




Domenic

Try...

=SUMPRODUCT(--(B1:B100="Barry"),--(G1:G100="Y"))

Hope this helps!

In article ,
"deaundra" wrote:

please help!!!!!!!

Column B Column G
Barry Y

I would like to count how many times these two show together on a row. can
this be done?



All times are GMT +1. The time now is 02:44 AM.

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