#1   Report Post  
Micayla Bergen
 
Posts: n/a
Default formula w exception

can i have a formula that looks for one thing but with exceptions?
i.e. =IF(LEN(A5)3,1,"") but if A5 contains CMT, DIVS or FUND
many thanks
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

=IF(OR(ISERROR(SEARCH("CMT",A5)),ISERROR(SEARCH("D IVS",A5)),ISERROR(SEARCH("FUND",A5)),
IF(LEN(A5)3,1,""), "" )
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Micayla Bergen" wrote in message
...
can i have a formula that looks for one thing but with exceptions?
i.e. =IF(LEN(A5)3,1,"") but if A5 contains CMT, DIVS or FUND
many thanks



  #3   Report Post  
Micayla Bergen
 
Posts: n/a
Default

Thanks Bernard. however i get an error saying there is a missing parenthesis,
so i have added one to the end, then i get a formula message saying i am
missing the value if true value if false values

"Bernard Liengme" wrote:

=IF(OR(ISERROR(SEARCH("CMT",A5)),ISERROR(SEARCH("D IVS",A5)),ISERROR(SEARCH("FUND",A5)),
IF(LEN(A5)3,1,""), "" )
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Micayla Bergen" wrote in message
...
can i have a formula that looks for one thing but with exceptions?
i.e. =IF(LEN(A5)3,1,"") but if A5 contains CMT, DIVS or FUND
many thanks




  #4   Report Post  
Micayla Bergen
 
Posts: n/a
Default

so i have tried this
=IF(OR(ISERROR(SEARCH("CMT",A6)),ISERROR(SEARCH("D IVS",A6)),ISERROR(SEARCH("FUND",A6))),,IF(LEN(A6) 3,1,""))
and still get nothing

"Bernard Liengme" wrote:

=IF(OR(ISERROR(SEARCH("CMT",A5)),ISERROR(SEARCH("D IVS",A5)),ISERROR(SEARCH("FUND",A5)),
IF(LEN(A5)3,1,""), "" )
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Micayla Bergen" wrote in message
...
can i have a formula that looks for one thing but with exceptions?
i.e. =IF(LEN(A5)3,1,"") but if A5 contains CMT, DIVS or FUND
many thanks




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
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 04:56 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"