Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
N Harkawat
 
Posts: n/a
Default

Use
=IF(ISERROR(SEARCH(" and ",C2)),"",LEFT(C2,SEARCH(" and ",C2)))
to avoid the error you are getting

"Mctabish" wrote in message
news:MXBAd.722502$mD.346465@attbi_s02...
I am trying to test for the word " and " in a cell. If the word is there,
everything is fine. However, if the word is not there, I get a #value!
error.
Here is the formula I have
=IF(SEARCH(" and ",C2)0,LEFT(C2,SEARCH(" and ",C2)),"")
Column C has names and if married, the spouses name. I am trying to
separate these in to differant coulmns. The results of the above would be
the extracted spouses name

Thanks,
Mctabish




  #2   Report Post  
Mctabish
 
Posts: n/a
Default How to avoid the #Value! result in a formula?

I am trying to test for the word " and " in a cell. If the word is there,
everything is fine. However, if the word is not there, I get a #value!
error.
Here is the formula I have
=IF(SEARCH(" and ",C2)0,LEFT(C2,SEARCH(" and ",C2)),"")
Column C has names and if married, the spouses name. I am trying to separate
these in to differant coulmns. The results of the above would be the
extracted spouses name

Thanks,
Mctabish


  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
one way:
=IF(COUNTIF(C2,"* and *"),LEFT(C2,SEARCH(" and ",C2)),"")

--
Regards
Frank Kabel
Frankfurt, Germany
"Mctabish" schrieb im Newsbeitrag
news:MXBAd.722502$mD.346465@attbi_s02...
I am trying to test for the word " and " in a cell. If the word is there,
everything is fine. However, if the word is not there, I get a #value!
error.
Here is the formula I have
=IF(SEARCH(" and ",C2)0,LEFT(C2,SEARCH(" and ",C2)),"")
Column C has names and if married, the spouses name. I am trying to
separate these in to differant coulmns. The results of the above would be
the extracted spouses name

Thanks,
Mctabish




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"