Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How NOT to return #VALUE in Find?

Status
Not open for further replies.

jetspin

Programmer
Mar 5, 2002
76

How does one NOT return #VALUE when the FIND Function does
not find its value?

For example... In the following I only want to put
a cell value in column B only if there is a phone number
in column A, but I also get the #VALUE when the FIND
functin fails. I don't want the #VALUE!

HERE IS A SAMPLE SHOWING THE FUNCTION....

COLUMN A COLUMN B
Row1 New York =IF(FIND("-",A1),A1)
Row2 Boston =IF(FIND("-",A2),A2)
Row3 403-333-2222 =IF(FIND("-",A3),A3)

HERE IS THE SAME SAMPLE SHOWING MY RESULTS...

COLUMN A COLUMN B
Row1 New York #VALUE
Row2 Boston #VALUE
Row3 403-333-2222 403-333-2222

THIS IS WANT I WANT...

COLUMN A COLUMN B
Row1 New York
Row2 Boston
Row3 403-333-2222 403-333-2222

THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top