Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Spunky
 
Posts: n/a
Default If contains specific alpha

The field may have a dash, comma, space or alpha. I want an IF statement
that will return a value if the field contains the letters DOF anywhere
within the field.
  #2   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

Look at help on the Find and Search worksheet functions.

--
Regards,
Tom Ogilvy

"Spunky" wrote in message
...
The field may have a dash, comma, space or alpha. I want an IF statement
that will return a value if the field contains the letters DOF anywhere
within the field.



  #4   Report Post  
Spunky
 
Posts: n/a
Default

Didn't work, I made the adjustments for cell reference, it seemed to work but
it returned my value for true even in fields that did not contain DOF.

Exa. of cell contents:
ORDER FORM RTL-ACCENT
ECHOES DOF - SUMMER


"Don Guillett" wrote:

try
=IF(ISERR(FIND("dof",F11)),"",2)

--
Don Guillett
SalesAid Software

"Spunky" wrote in message
...
The field may have a dash, comma, space or alpha. I want an IF statement
that will return a value if the field contains the letters DOF anywhere
within the field.




  #5   Report Post  
Tim C
 
Posts: n/a
Default

Try capitalizing DOF.

=IF(ISERR(FIND("DOF",F11)),"",2)

Tim C

"Spunky" wrote in message
...
Didn't work, I made the adjustments for cell reference, it seemed to work
but
it returned my value for true even in fields that did not contain DOF.

Exa. of cell contents:
ORDER FORM RTL-ACCENT
ECHOES DOF - SUMMER

"Don Guillett" wrote:

try
=IF(ISERR(FIND("dof",F11)),"",2)

--
Don Guillett
SalesAid Software

"Spunky" wrote in message
...
The field may have a dash, comma, space or alpha. I want an IF
statement
that will return a value if the field contains the letters DOF anywhere
within the field.





  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

1]

=COUNTIF(A1,"*DOF*")*10

would return 10 (a numeric return value) if CountIf successful, otherwise 0.

2]

=IF(COUNTIF(A1,"*DOF*"),ReturnVal,"")

would return the specified return value, otherwise nothing.

Spunky wrote:
The field may have a dash, comma, space or alpha. I want an IF statement
that will return a value if the field contains the letters DOF anywhere
within the field.

  #7   Report Post  
Spunky
 
Posts: n/a
Default

=IF(ISERR(FIND("DOF",G47)),"MKT",2)
Nope, still copies same text in every field down the column.
Appreciate your persistance.

Exa.:
MKT SOMEONE I LOVED DIED
MKT FAMILY R/P DOF - SUMMER

"Tim C" wrote:

Try capitalizing DOF.

=IF(ISERR(FIND("DOF",F11)),"",2)

Tim C

"Spunky" wrote in message
...
Didn't work, I made the adjustments for cell reference, it seemed to work
but
it returned my value for true even in fields that did not contain DOF.

Exa. of cell contents:
ORDER FORM RTL-ACCENT
ECHOES DOF - SUMMER

"Don Guillett" wrote:

try
=IF(ISERR(FIND("dof",F11)),"",2)

--
Don Guillett
SalesAid Software

"Spunky" wrote in message
...
The field may have a dash, comma, space or alpha. I want an IF
statement
that will return a value if the field contains the letters DOF anywhere
within the field.




  #8   Report Post  
Myrna Larson
 
Posts: n/a
Default

Find is case-sensitive. Your cell contains DOF, the formula dof. They
shouldn't match. For me they don't. The formula

=IF(ISERR(SEARCH("dof",F11)),"",2)

gives the correct results.


On Mon, 10 Jan 2005 12:01:03 -0800, Spunky
wrote:

Didn't work, I made the adjustments for cell reference, it seemed to work but
it returned my value for true even in fields that did not contain DOF.

Exa. of cell contents:
ORDER FORM RTL-ACCENT
ECHOES DOF - SUMMER


"Don Guillett" wrote:

try
=IF(ISERR(FIND("dof",F11)),"",2)

--
Don Guillett
SalesAid Software

"Spunky" wrote in message
...
The field may have a dash, comma, space or alpha. I want an IF statement
that will return a value if the field contains the letters DOF anywhere
within the field.





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
Hyperlink to specific worksheet in Excel Glenn Mulno Links and Linking in Excel 2 February 7th 05 06:01 PM
How do I make a cell date specific to input a value on a specific. ebuzz13 Excel Discussion (Misc queries) 1 January 18th 05 05:53 PM
How do I insert an image into a specific cell within a protected . Scott Peebles Excel Discussion (Misc queries) 1 January 7th 05 01:14 AM
hyperlink to specific sheet in excel mango Excel Worksheet Functions 1 December 9th 04 11:17 AM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM


All times are GMT +1. The time now is 02:50 PM.

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"