Using COUNTA horizontally

Dsheaff

New Member
Joined
Aug 14, 2018
Messages
33

I need a formula that will count the number of times the value "N" appears in cell B10 and E10....if "N" does not appear in either cell, the recipient cell (cell G10) is to remain blank


Tree Trimming Requirement Met
Mowing Requirement Met
A
B
C
D
E
F
G
Yes
No
CEAP *
YesNoCEAP *Number of Times Requirement Not Met
(Y)
(N)
(X)(Y)(N)(X)
N
N

<colgroup><col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="10" style="width: 8pt; mso-width-source: userset; mso-width-alt: 365;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="64" style="width: 48pt;"> <col width="6" style="width: 5pt; mso-width-source: userset; mso-width-alt: 219;"> <col width="10" style="width: 8pt; mso-width-source: userset; mso-width-alt: 365;"> <col width="52" style="width: 39pt; mso-width-source: userset; mso-width-alt: 1901;"> <col width="40" style="width: 30pt; mso-width-source: userset; mso-width-alt: 1462;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the Board!

One way:
Code:
=IF((E10="N")+(G10="N")>0,(E10="N")+(G10="N"),"")
 
Upvote 0
Hi,

Joe4 had a typo in his formula (fixed in G10), and I included another way to write it (H10), just in case you meant to count the range B10:E10, use I10


Book1
BCDEFGHI
10NXYN222
Sheet180
Cell Formulas
RangeFormula
G10=IF((B10="N")+(E10="N"),(B10="N")+(E10="N"),"")
H10=IF(OR(B10="N",E10="N"),(B10="N")+(E10="N"),"")
I10=IF(COUNTIF(B10:E10,"N"),COUNTIF(B10:E10,"N"),"")
 
Last edited:
Upvote 0
Joe4 had a typo in his formula (fixed in G10), and I included another way to write it (H10), just in case you meant to count the range B10:E10, use I10
Good catch.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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