question on using countif or other function to count values in every other column

sergiom920

New Member
Joined
Nov 2, 2005
Messages
12
Guys i have a total coumn where i would like to do a count of the "Y"s in every other column.. How can i do that? see example below


Jan TY Jan LY FEB TY FEB LY MAR TY MAR LY
Product A Y Y N Y Y N


In this case the count of the Y should be 2, because JAN TY,and MAR TY have a Y

Please help..
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
A couple of possibilities:

=SUMPRODUCT(--(RIGHT(B1:G1,2)="TY"),--(B2:G2="Y"))
=COUNTIFS(B1:G1,"*TY",B2:G2,"Y")

The second formula requires Excel 2007 or above.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top