Solved

Search for sting in cell

Posted on 2014-01-21
2
212 Views
Last Modified: 2014-01-21
I want to look at a cell and determine if a string is present and if so create an entry.
Cell possibilities:
Jim Jones***
Sally Smith*
Bob Burns**
Allen Barnett

Desired results:
If the cell has one asterisk enter "Fees".
If the cell has two asterisks enter "Wavier".
If the cell has three asterisks enter "N/A"
If the cell has no asterisks enter "Pay Fees and Sign Wavier".

Thanks,
Marvin
0
Comment
Question by:mabarnes11
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39796925
=len(a1)-len(substitute(a1,"*",""))

will give you the number of asterisks in A1

=choose(len(a1)-len(substitute(a1,"*",""))+1,"Pay Fees and Sign Wavier","Fees","Wavier","N/A")
0
 

Author Closing Comment

by:mabarnes11
ID: 39796938
Thanks!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

911 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

20 Experts available now in Live!

Get 1:1 Help Now