Solved

Finding text with two cells

Posted on 2013-10-25
3
147 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now