IF CELL CONTAINS COMBINATION OF TWO SPECIFIC TEXT VALUES, RETURN TRUE OR FALSE

JTH94BT

New Member
Joined
Jul 11, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I need to return "TRUE" for all cells that contain "APP ONLY" AND "FOR QQ" and "FALSE" for any cell that contains only "APP ONLY" and not "FOR QQ":

Product DescriptionTRUE OR FALSE
APP ONLY 12M TEST FOR QQ
GBP 1 OFF APP ONLY 24M TEST FOR QQ
APP ONLY 6M FOR QQ
APP ONLY TEST 24M
APP ONLY 12M

I have used "=IF(ISNUMBER(SEARCH" for other scenarios where there is only one piece of text that I need to search for, but I'm unsure how to incorporate a second specific text
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi, you could try like this:

Book1
AB
1Product DescriptionTRUE OR FALSE
2APP ONLY 12M TEST FOR QQTRUE
3GBP 1 OFF APP ONLY 24M TEST FOR QQTRUE
4APP ONLY 6M FOR QQTRUE
5APP ONLY TEST 24MFALSE
6APP ONLY 12MFALSE
Sheet1
Cell Formulas
RangeFormula
B2:B6B2=AND(ISNUMBER(SEARCH({"APP ONLY","FOR QQ"},A2)))
 
Upvote 0
something like this:
Excel Formula:
=IF(NOT(ISERR(SEARCH("APP ONLY",A2))),IF(NOT(ISERR(SEARCH("FOR QQ",A2))),TRUE,FALSE),"")
 
Upvote 0
Hi, you could try like this:

Book1
AB
1Product DescriptionTRUE OR FALSE
2APP ONLY 12M TEST FOR QQTRUE
3GBP 1 OFF APP ONLY 24M TEST FOR QQTRUE
4APP ONLY 6M FOR QQTRUE
5APP ONLY TEST 24MFALSE
6APP ONLY 12MFALSE
Sheet1
Cell Formulas
RangeFormula
B2:B6B2=AND(ISNUMBER(SEARCH({"APP ONLY","FOR QQ"},A2)))
Hi, you could try like this:

Book1
AB
1Product DescriptionTRUE OR FALSE
2APP ONLY 12M TEST FOR QQTRUE
3GBP 1 OFF APP ONLY 24M TEST FOR QQTRUE
4APP ONLY 6M FOR QQTRUE
5APP ONLY TEST 24MFALSE
6APP ONLY 12MFALSE
Sheet1
Cell Formulas
RangeFormula
B2:B6B2=AND(ISNUMBER(SEARCH({"APP ONLY","FOR QQ"},A2)))
THANK YOU THIS WORKED PERFECTLY!
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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