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

=IF(OR(ISERROR(SEARCH("CMT",A4)),ISERROR(SEARCH("D IVS",A4)),ISERROR(SEARCH("FUND",A4))),"",
IF(LEN(A4)3,1,""))

i have this formula which should return a value of 1 if A5 contains more
than 3 letters except if A5 contains CMT, DIVS or FUND
what am i missing?
many thanks
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Well, I'm assuming you mean "A4", not "A5", in your statement. If A4 is the
target cell, try:

=IF(OR(LEN(A4)<=3,SUM(COUNTIF(A4,{"*cmt*","*divs*" ,"*fund*"}))0),"",1)

HTH
Jason
Atlanta, GA

"Micayla Bergen" wrote:

=IF(OR(ISERROR(SEARCH("CMT",A4)),ISERROR(SEARCH("D IVS",A4)),ISERROR(SEARCH("FUND",A4))),"",
IF(LEN(A4)3,1,""))

i have this formula which should return a value of 1 if A5 contains more
than 3 letters except if A5 contains CMT, DIVS or FUND
what am i missing?
many thanks

  #3   Report Post  
Max
 
Posts: n/a
Default

Perhaps try also:

=IF(ISNUMBER(MATCH(A4,{"CMT";"DIVS";"FUND"},0)),"" ,IF(LEN(A4)3,1,""))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Micayla Bergen" wrote in message
...

=IF(OR(ISERROR(SEARCH("CMT",A4)),ISERROR(SEARCH("D IVS",A4)),ISERROR(SEARCH("
FUND",A4))),"",
IF(LEN(A4)3,1,""))

i have this formula which should return a value of 1 if A5 contains more
than 3 letters except if A5 contains CMT, DIVS or FUND
what am i missing?
many thanks



  #4   Report Post  
CLR
 
Posts: n/a
Default

Really cool Jason, but if the OP really meant "3 letters" instead of "3
characters", then this maybe........

=IF(ISNUMBER(A4),"",IF(OR(LEN(A4)<=3,SUM(COUNTIF(A 4,{"*cmt*","*divs*","*fund
*"}))0),"",1))

Vaya con Dios,
Chuck, CABGx3



"Jason Morin" wrote in message
...
Well, I'm assuming you mean "A4", not "A5", in your statement. If A4 is

the
target cell, try:

=IF(OR(LEN(A4)<=3,SUM(COUNTIF(A4,{"*cmt*","*divs*" ,"*fund*"}))0),"",1)

HTH
Jason
Atlanta, GA

"Micayla Bergen" wrote:


=IF(OR(ISERROR(SEARCH("CMT",A4)),ISERROR(SEARCH("D IVS",A4)),ISERROR(SEARCH("
FUND",A4))),"",
IF(LEN(A4)3,1,""))

i have this formula which should return a value of 1 if A5 contains more
than 3 letters except if A5 contains CMT, DIVS or FUND
what am i missing?
many thanks



  #5   Report Post  
Max
 
Posts: n/a
Default

If A4 were to contain for example: CMTS or FUNDS or DIVS#
I'm not sure whether the OP would want a "1" to be returned ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
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


All times are GMT +1. The time now is 05:56 PM.

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

About Us

"It's about Microsoft Excel"