» Altering results returned in case of an error.
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
Column A contains E-mail addresses, from which we would like to pull out the user names of Gmail users only (addresses containing ""@gmail"").
In case the address does belong to a gmail user, a string indicating that conclusion should be returned (instead of a #VALUE! Error).
Solution:
"Use the LEFT and FIND functions to find the requested substring in the address,
and the ISNUMBER and IF functions to determine the value to return in case the substring could not be found.
Following is the formula:
=IF(ISNUMBER(FIND(""@gmail"",A2)),LEFT(A2,FIND(""@gmail"",A2)-1),""Not a Gmail user"")
Example:
Emails_______________Gmail Users
User1@gmail.com______User1
User2@hotmail.com____Not a Gmail user
User3@yahoo.com______Not a Gmail user
User4@gmail.com______User4

Book Store:
Recommended Books:
- Microsoft Access Version 2002 Step by Step
- Investing for Dummies, Third Edition
- Microsoft Office Xp: Advanced Concepts and Techniques: Word 2002, Excel 2002, Access 2002, Powerpoint 2002
- The Complete Book of Business Plans: Simple Steps to Writing a Powerful Business Plan (Small Business Sourcebooks)
- The New Financial Order: Risk in the Twenty-First Century
- Absolute Beginner's Guide to Microsoft Office Excel 2003
No comments have been submitted.

