searching specific text char

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum 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

resolvedResolved · Medium Priority · Version 2010 featured Featured

Edited on Thu 25 Apr 2013, 16:32

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


 

Excel tip:

Jumping Across the Excel Screen

PgDn and PgUp keys scrolls up and down a screen page in most applications.

Alt+PgDn and Alt+PgUp is the equivalent across the spreadsheet.

View all Excel hints and tips


Server loaded in 0.08 secs.