How to count multiple rows with ISNUMBER

DCW40

New Member
Joined
Jan 10, 2018
Messages
4
I was not able to find an answer anywhere, so now I wondering if my approach is wrong. This is the formula I am using =IF(ISNUMBER(SEARCH("pass",$J$1)),"pass",IF(ISNUMBER(SEARCH("fail",$J$1)),"fail","")). This formula does work but now I need it to read row G through J. It needs to be able to find pass or fail in the rows, but I was using the search function because the cells do not simply say pass or fail there are several options, for example one pass option is payment-pass. I have tried everything I can think of to get my formula to count the additional rows with no luck.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

What if, within your range G1:J1, both "Pass" and "Fail" is found?
 
Upvote 0
It should only pass if all options pass, if anything fails the result should be fail.
 
Upvote 0
It should only pass if all options pass, if anything fails the result should be fail.

Hi,

Would it be possible that not All 4 columns Pass, but there is no Fail neither?
Assuming the 4 columns will Always be Pass or Fail:

PLEASE NOTE: This is an array formula, follow instructions below.


Book1
GHIJKM
1Payment-PassPayment-PassPayment-PassFailFail
2Payment-PassPayment-PassPayment-PassPassPass
3Payment-FailFailPayment-PassPassFail
Sheet11
Cell Formulas
RangeFormula
M1{=IF(COUNT(SEARCH("Pass",G1:J1))=4,"Pass","Fail")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Might as well fix the typos too for Aladin, plus a shortened version:


Book1
GHIJKQR
1Payment-PassPayment-PassPayment-PassFailfailFail
2Payment-PassPayment-PassPayment-PassPasspassPass
3Payment-FailFailPayment-PassPassfailFail
Sheet11
Cell Formulas
RangeFormula
Q1=IF(COUNTIFS(G1:J1,"*pass*")=COLUMNS(G1:J1),"pass","fail")
R1=IF(COUNTIF(G1:J1,"*Pass*")=4,"Pass","Fail")
 
Upvote 0
Might as well fix the typos too for Aladin, plus a shortened version:[...]

Great request. I'm impressed, but less so with the shortened version:

=IF(COUNTIF(G1:J1,"*Pass*")=4,"Pass","Fail")


requires adjusting that 4 whenever G1:J1 changes. While

=IF(COUNTIFS(G1:J1,"*pass*")=COLUMNS(G1:J1),"pass","fail")


needs not.




 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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