Solved

Finding text with two cells

Posted on 2013-10-25
3
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 use a scrolling table in Microsoft Excel using the INDEX function.

632 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