Solved

Search for sting in cell

Posted on 2014-01-21
2
222 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel User Form VBA Help 18 32
MS excel check if Links exist 5 35
Excel fill in a form with pick list or drop downs, also need calendar pick 25 23
Excel IF formula 3 21
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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 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