Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TMF in MN
 
Posts: n/a
Default Formula that 'contains' a specific word

In this scenario I would like column C to show 0 for any cell in column a
that contains the word "dogs."

a b c c should be
1 xx dogs 33 0
2 rr cat 16 16
3 zz dogs 5 0

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard O. Neville
 
Posts: n/a
Default Formula that 'contains' a specific word

The formula in C2 would be: =IF(A2="dogs",0). You must use quotes for any
text in a formula. Then spread this formula down column C.

"TMF in MN" wrote in message
...
In this scenario I would like column C to show 0 for any cell in column a
that contains the word "dogs."

a b c c should be
1 xx dogs 33 0
2 rr cat 16 16
3 zz dogs 5 0

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TMF in MN
 
Posts: n/a
Default Formula that 'contains' a specific word

That does work except for the variable text that is contained with the word
dogs. I would like it to return the value of 0 if the text said "xx dogs" or
"yy dogs" or just "dogs". Can you incorporate this variable into a formula?

"Richard O. Neville" wrote:

The formula in C2 would be: =IF(A2="dogs",0). You must use quotes for any
text in a formula. Then spread this formula down column C.

"TMF in MN" wrote in message
...
In this scenario I would like column C to show 0 for any cell in column a
that contains the word "dogs."

a b c c should be
1 xx dogs 33 0
2 rr cat 16 16
3 zz dogs 5 0

Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default Formula that 'contains' a specific word

How about

=IF(ISERR(SEARCH("Dogs",A1)),B1,0)

--
Kevin Vaughn


"TMF in MN" wrote:

In this scenario I would like column C to show 0 for any cell in column a
that contains the word "dogs."

a b c c should be
1 xx dogs 33 0
2 rr cat 16 16
3 zz dogs 5 0

Thank you.

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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
delete cell that doesn't contain a specific word [email protected] Excel Discussion (Misc queries) 1 October 12th 05 05:54 AM
replave word in formula Darius Excel Worksheet Functions 1 September 22nd 05 07:41 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Creating a specific formula booroni New Users to Excel 3 March 26th 05 10:05 AM


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