If Range Contains Text

The_Rock

Board Regular
Joined
Jul 2, 2007
Messages
174
Hi Folks
Can you please help me update the following or suggest something new to try instead.

I have data in columns H to W.

Currently, I am using the below which is working fine
Code:
=IF(COUNTIF(H3:W3,"FAIL SVI VAP"),"Failed SVI Cert Element","")

I would like to update this to include OR. I've tried inserting it in different places but can't get it to work.
Basically, I need:

If the Range H3:W3 is either "Fail SVI VAP" OR "Fail ALL", then "Failed SVI Cert Element" else ""

Thanks in advance
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Perhaps..

=IF(COUNTIF(H3:W3,"FAIL*"),"Failed SVI Cert Element","")


However, technically this is only saying if the value begins with Fail.
so it would count any row that begins with Fail, not JUST the 2 you instances you indicate..
 
Upvote 0
If you need to be more specific than that..then try

=IF(SUM(COUNTIF(H3:W3,{"FAIL SVI VAP","Fail ALL"})),"Failed SVI Cert Element","")
 
Upvote 0
Hi Jonmo1
I don't want to use wildcards as I have another 2 fail criteria which I do not want to include.

Any other suggestions?
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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