?
Solved

Search for sting in cell

Posted on 2014-01-21
2
Medium Priority
?
254 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
[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
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

719 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