ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COMPARE TEXT (https://www.excelbanter.com/excel-discussion-misc-queries/149760-compare-text.html)

CC

COMPARE TEXT
 
I need find a way to compare two cells this way
example
Cell A3 Content = UV2345ZC
Cell B3 Content = System closed
The result in Cell C3 should be True if Cell A3 contain "ZC" and Cell
B3 contain "Closed"



Teethless mama

COMPARE TEXT
 
=AND(RIGHT(A3,2)="ZC",RIGHT(B3,6)="Closed")


"CC" wrote:

I need find a way to compare two cells this way
example
Cell A3 Content = UV2345ZC
Cell B3 Content = System closed
The result in Cell C3 should be True if Cell A3 contain "ZC" and Cell
B3 contain "Closed"



PCLIVE

COMPARE TEXT
 
One way:

=AND(ISNUMBER(SEARCH("ZC",A3)),ISNUMBER(SEARCH("Cl osed",B3)))

HTH,
Paul

"CC" wrote in message
...
I need find a way to compare two cells this way
example
Cell A3 Content = UV2345ZC
Cell B3 Content = System closed
The result in Cell C3 should be True if Cell A3 contain "ZC" and
Cell
B3 contain "Closed"





Toppers

COMPARE TEXT
 
=IF(AND(ISNUMBER(SEARCH("ZC",A3)),ISNUMBER(SEARCH( "Closed",B3))),"True","False")

"CC" wrote:

I need find a way to compare two cells this way
example
Cell A3 Content = UV2345ZC
Cell B3 Content = System closed
The result in Cell C3 should be True if Cell A3 contain "ZC" and Cell
B3 contain "Closed"



David Biddulph[_2_]

COMPARE TEXT
 
=AND(ISNUMBER(SEARCH("ZC",A3)),ISNUMBER(SEARCH("Cl osed",B3)))

If you want the searches to be case-sensitive, then replace SEARCH() by
FIND().
--
David Biddulph

"CC" wrote in message
...
I need find a way to compare two cells this way
example
Cell A3 Content = UV2345ZC
Cell B3 Content = System closed
The result in Cell C3 should be True if Cell A3 contain "ZC" and
Cell
B3 contain "Closed"






All times are GMT +1. The time now is 10:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com