#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Can IF do this?

I'd like to have a function in cell A1 that does the following:

If Column C contains the text string "xyz" in any of its cells, display
"true"; if not, display "false"

Is this possible?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Can IF do this?

Try this in A1:

=COUNTIF(C:C,"xyz")0

Hope this helps.

Pete

On Jun 28, 11:47 pm, "D.P. Roberts" wrote:
I'd like to have a function in cell A1 that does the following:

If Column C contains the text string "xyz" in any of its cells, display
"true"; if not, display "false"

Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Can IF do this?

=ISNUMBER(MATCH("xyz",C:C,0))


"D.P. Roberts" wrote:

I'd like to have a function in cell A1 that does the following:

If Column C contains the text string "xyz" in any of its cells, display
"true"; if not, display "false"

Is this possible?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Can IF do this?

That is perfect - thanks!

"Pete_UK" wrote in message
oups.com...
Try this in A1:

=COUNTIF(C:C,"xyz")0

Hope this helps.

Pete

On Jun 28, 11:47 pm, "D.P. Roberts" wrote:
I'd like to have a function in cell A1 that does the following:

If Column C contains the text string "xyz" in any of its cells, display
"true"; if not, display "false"

Is this possible?





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Can IF do this?

Glad to be of help - thanks for feeding back.

Pete

On Jul 19, 9:56 pm, "D.P. Roberts" wrote:
That is perfect - thanks!

"Pete_UK" wrote in message

oups.com...



Try this in A1:


=COUNTIF(C:C,"xyz")0


Hope this helps.


Pete


On Jun 28, 11:47 pm, "D.P. Roberts" wrote:
I'd like to have a function in cell A1 that does the following:


If Column C contains the text string "xyz" in any of its cells, display
"true"; if not, display "false"


Is this possible?- Hide quoted text -


- Show quoted text -



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



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