98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Searching for a specific text char in Excel 2010 | Excel forum
Searching for a specific text char in Excel 2010 | Excel forum
Resolved · Medium Priority · Version 2010 Featured
Simon has attended:
Excel Advanced course
Word Advanced course
Visio Advanced course
Searching for a specific text char in Excel 2010
I need to be able find a specific text character (actually a "/" )in a string, but return FALSE or zero if the character is not found, so I can do further processing on the data.
The SEARCH and FIND functions both evaluate to "#VALUE!" if my test data doesn't contain the "/", which I then can't use to do anything else with. I have about 30,000 cells to search, and my VB is non-existent, so being able to do it in one go would be a bonus!
Any help greatly appreciated please.
RE: Searching for a specific text char in Excel 2010
Hi Simon
Thanks for getting in touch. You're on the right track with SEARCH and FIND, the key is to embed them within the IFERROR function. It could look something like this:
=IFERROR(FIND("/",A1),"No")
Which will return "No" if not found. You can replace the "No" with almost anything you like, such as "FALSE" or 0.
I hope this helps.
Kind regards
Gary Fenn
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
RE: Searching for a specific text char in Excel 2010
Brilliant, thanks Gary. I had completely forgotten about IFERROR - probably from staring at pages and pages of numbers! This does exactly what I need, so I can simplify a whole load of calculations now.
Many thanks
Simon
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Jumping Across the Excel ScreenPgDn and PgUp keys scrolls up and down a screen page in most applications. |