Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Making the AND function look at only part of a cell entry

I am trying to identify different conditions that might exist with data using
an AND statement embedded in an IF statement. The cell entries in column K
might contain the word "composite", but there will be many times when the
cell will have other words as well, e.g. Composite class/Multi-managed.

I've looked at other posts on the board and tried various wild card-type
solutions but can't find a way to make the AND statement look at only part of
the cell.

=IF(AND(G2="dupe",I2="x"),"delete",IF(AND(G2="dupe ",K2="composite"),"delete",IF(N2="y","delete","")) )

Help would be much appreciated! Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Making the AND function look at only part of a cell entry

Try using the search function. If the value is 0, it's found the text your
looking for.
--
HTH,

Barb Reinhardt



"Cathy" wrote:

I am trying to identify different conditions that might exist with data using
an AND statement embedded in an IF statement. The cell entries in column K
might contain the word "composite", but there will be many times when the
cell will have other words as well, e.g. Composite class/Multi-managed.

I've looked at other posts on the board and tried various wild card-type
solutions but can't find a way to make the AND statement look at only part of
the cell.

=IF(AND(G2="dupe",I2="x"),"delete",IF(AND(G2="dupe ",K2="composite"),"delete",IF(N2="y","delete","")) )

Help would be much appreciated! Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Making the AND function look at only part of a cell entry

Thanks very much. I combined search and isnumber and it works perfectly now.

"Barb Reinhardt" wrote:

Try using the search function. If the value is 0, it's found the text your
looking for.
--
HTH,

Barb Reinhardt



"Cathy" wrote:

I am trying to identify different conditions that might exist with data using
an AND statement embedded in an IF statement. The cell entries in column K
might contain the word "composite", but there will be many times when the
cell will have other words as well, e.g. Composite class/Multi-managed.

I've looked at other posts on the board and tried various wild card-type
solutions but can't find a way to make the AND statement look at only part of
the cell.

=IF(AND(G2="dupe",I2="x"),"delete",IF(AND(G2="dupe ",K2="composite"),"delete",IF(N2="y","delete","")) )

Help would be much appreciated! 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
function to count the amount of cells depending on part of the cell entry Andyd74 Excel Worksheet Functions 5 May 25th 06 11:12 AM
matching part of an entry in a cell Andyd74 Excel Worksheet Functions 1 May 24th 06 06:00 PM
Making Cell Entry Mandatory Sue T Excel Discussion (Misc queries) 4 August 17th 05 03:45 PM
How do I work with part of a cell entry? JKB Excel Worksheet Functions 4 July 29th 05 11:09 PM
extracting comments in a cell and making these part of the Chart . Charles Charts and Charting in Excel 2 April 19th 05 03:40 PM


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

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"