counting across a row/range

The Grim Discovery

Board Regular
Joined
Jan 23, 2015
Messages
246
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.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]NO[/TD]
[TD]75[/TD]
[TD]100[/TD]
[TD]250[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]100[/TD]
[TD]200[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]DATA[/TD]
[TD]DATA[/TD]
[TD]DATA[/TD]
[TD]DATA[/TD]
[TD]DATA[/TD]
[TD]=NO[/TD]
[TD]=NUMBER[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]NO[/TD]
[TD]75[/TD]
[TD]100[/TD]
[TD]250[/TD]
[TD]500[/TD]
[TD]=COUNTIF(A2:E2,"No")>0[/TD]
[TD]=ISNUMBER(MAX(A2:E2))[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]200[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[TD]NO[/TD]
[TD]=COUNTIF(A3:E3,"No")>0[/TD]
[TD]=ISNUMBER(MAX(A3:E3))[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]












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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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