PC Review


Reply
Thread Tools Rate Thread

Code advice please...

 
 
BruceJ
Guest
Posts: n/a
 
      13th Nov 2003
I have the following in a cell currently.
=IF(OR(ISNUMBER(SEARCH({"live","appoint"},J2&N2&R2))),"T","F")
I am looking for the works live or appointment in on of 3 cells.

I need to look for more words.
Would it be best at that point to use a user defined function or is there a
way to modify the above for more than 2 options?

Which would be the fastest?

I know I could do a function that would test for several varible using if
elseif else, but I am not sure which would be fastest, or how to modify the
above to test for three or four conditions.

Thanks
Bruce


 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      13th Nov 2003
=IF(OR(ISNUMBER(SEARCH({"live","appoint","tom","dick","harry"},J2&N2&R2))),"
T","F")

as an example.

Just add your words to the list.

--
Regards,
Tom Ogilvy

"BruceJ" <oe*NOSPAM*@connecting4income.com> wrote in message
news:AOPsb.193292$Fm2.178384@attbi_s04...
> I have the following in a cell currently.
> =IF(OR(ISNUMBER(SEARCH({"live","appoint"},J2&N2&R2))),"T","F")
> I am looking for the works live or appointment in on of 3 cells.
>
> I need to look for more words.
> Would it be best at that point to use a user defined function or is there

a
> way to modify the above for more than 2 options?
>
> Which would be the fastest?
>
> I know I could do a function that would test for several varible using if
> elseif else, but I am not sure which would be fastest, or how to modify

the
> above to test for three or four conditions.
>
> Thanks
> Bruce
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on code Les Microsoft Excel Programming 2 19th May 2008 04:03 PM
Advice on code Greg Microsoft Excel Programming 0 10th May 2006 04:48 PM
Need some advice on the following code Dean Microsoft Excel Programming 3 3rd Mar 2006 01:01 AM
Little more advice on this code Greg B Microsoft Excel Misc 3 3rd Sep 2005 05:31 AM
Need advice, help, possible code example Aaron Microsoft ADO .NET 2 21st May 2004 06:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:12 PM.