Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Logical statement for 'contains' ?

Is there a logical statement to return 'True' if one cell contains the
contents of another (and maybe more).

E.g.
Cell 1 = 12345
Cell 2 = 123456789
Cell 3 = 987654321

Logical statement would return true for cell 1 against 2, but not for cell 1
against 3.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Logical statement for 'contains' ?

Where j5 is what you seek

=IF(ISERR(FIND($J$5,J6)),"no","yes") yes
=IF(ISERR(FIND($J$5,J7)),"no","yes") no
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Singh" wrote in message
...
Is there a logical statement to return 'True' if one cell contains the
contents of another (and maybe more).

E.g.
Cell 1 = 12345
Cell 2 = 123456789
Cell 3 = 987654321

Logical statement would return true for cell 1 against 2, but not for cell
1
against 3.

Thanks.


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
Conditional format based off of a logical if statement cyndi Excel Discussion (Misc queries) 3 November 6th 07 07:07 PM
IF STATEMENT - HOW TO STRUCTURE THE LOGICAL OPERATORS SSJ New Users to Excel 8 April 9th 07 11:15 AM
Logical Statement Harley Excel Discussion (Misc queries) 1 January 4th 07 02:37 AM
3 logical condition if statement Mikehughes Excel Worksheet Functions 3 July 19th 06 01:59 PM
How do I use a logical IF statement with TEXT in EXCEL SchnidRoCK Excel Worksheet Functions 6 June 2nd 06 12:55 PM


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