counting across a row/range

The Grim Discovery

Board Regular
Joined
Jan 23, 2015
Messages
241
Office Version
  1. 365
Platform
  1. Windows
Hello

How do I do this, please someone please point me in the right direction??
If a row contains a single 'NO' (like Row 1) I'd like to count that as one.
If a row contains multiple instances of 'NO' (like Row 2) I'd like that to be counted just as one.
I'm not interested in counting the instances of 'NO' just if there is at least one in a row.
The same with numbers. I'm not interested in the values of numbers just if there is at least one in a row.

Tried variations of COUNTIFS and ANDs but it's not happening for me.
Thanks in advance.
ABCDE
1NO75100250500
2100200NONONO
3
4
5

<tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
ABCDEFG
1DATADATADATADATADATA=NO=NUMBER
2NO75100250500=COUNTIF(A2:E2,"No")>0=ISNUMBER(MAX(A2:E2))
3100200NONONO=COUNTIF(A3:E3,"No")>0=ISNUMBER(MAX(A3:E3))
4
5
6

<tbody>
</tbody>












The Answer Will Return True if No or Numerics are available in a range

Cheers
 
Last edited:
Upvote 0
Hello Aladin

Reading that back again I see there's a problem

I'd like Row 1 to be the equivalent of a YES, as in, yes there is a number between A1:E1.
It's only in rows that contain at least one 'No' and no numbers that I'd want this to be counted separately as a NO.

Hope that's an improvement...
 
Upvote 0
Hello Aladin

Reading that back again I see there's a problem

I'd like Row 1 to be the equivalent of a YES, as in, yes there is a number between A1:E1.
It's only in rows that contain at least one 'No' and no numbers that I'd want this to be counted separately as a NO.

Hope that's an improvement...

A single formula per row could be:

=IF(COUNT(A1:E1),"YES",IF(COUNTIFS(A1:E1,"NO"),"NO","")
 
Upvote 0

Forum statistics

Threads
1,216,488
Messages
6,130,952
Members
449,608
Latest member
jacobmudombe

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