Solved

Finding text with two cells

Posted on 2013-10-25
3
151 Views
Last Modified: 2013-10-25
I want to look at two cells and check for information.  In the A column I want to determine if the cell contains "***" which will be included with other text.  In addition I want to look at another cell to determine if the amount is over 32.
Here is my formula so far and it doesn't work.
=IF(AND(ISNUMBER(SEARCH("***",A5)))*E5>32,"Yes","No")
No matter what A5 contains (1, 2, 3 or no "*") the reply is "Yes."

Thanks in advance...
Marvin
0
Comment
Question by:mabarnes11
3 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39600325
The asterisks are wildcards, in order to override that you need to use tildes...

eg

=IF(AND(ISNUMBER(SEARCH("~*~*~*",A5)))*E5>32,"Yes","No")
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 39600336
Try FIND instead of SEARCH - FIND doesn't recognise wildcards so it treats the asterisks as you want.

You also need to tidy up the way you have used AND because it isn't treating E5>32 as a separate condition

Try this version

=IF(AND(ISNUMBER(FIND("***",A5)),E5>32),"Yes","No")

regards, barry
0
 

Author Closing Comment

by:mabarnes11
ID: 39600368
Thanks....
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question