Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Character Search a cell

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.
--
JPS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 293
Default Character Search a cell

Hey JPS;

You could put this into your results cell (you will need to change A1
to your target cell):

=IF(OR(A1="01-08",A1="08-07",A1="27B"),"UPDATED","")

Remember your test data has to be text otherwise the numbers will
compute to something else.

HTH

-Minitman

On Thu, 13 Mar 2008 01:03:01 -0700, JPS
wrote:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Character Search a cell

Say R2 is the cell to be checked, then enter this formula in the result cell:

=IF(NOT(AND(ISERROR(FIND("01-08",R2)),ISERROR(FIND("08-07",R2)),ISERROR(FIND("27B",R2)))),"UPDATED","")

ans drag down as necessary!

Regards,
Stefi


€˛JPS€¯ ezt Ć*rta:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.
--
JPS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Character Search a cell

I forgot to say that the values that I need to search for will be changing
weekly, so the criteria needs to be flexible.
--
JPS


"Stefi" wrote:

Say R2 is the cell to be checked, then enter this formula in the result cell:

=IF(NOT(AND(ISERROR(FIND("01-08",R2)),ISERROR(FIND("08-07",R2)),ISERROR(FIND("27B",R2)))),"UPDATED","")

ans drag down as necessary!

Regards,
Stefi


€˛JPS€¯ ezt Ć*rta:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.
--
JPS

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Character Search a cell

Put your changing values in cells, say A1,A2,A3 and use this modified formula:

=IF(NOT(AND(ISERROR(FIND(A1,R2)),ISERROR(FIND(A2,R 2)),ISERROR(FIND(A3,R2)))),"UPDATED","")

Stefi

€˛JPS€¯ ezt Ć*rta:

I forgot to say that the values that I need to search for will be changing
weekly, so the criteria needs to be flexible.
--
JPS


"Stefi" wrote:

Say R2 is the cell to be checked, then enter this formula in the result cell:

=IF(NOT(AND(ISERROR(FIND("01-08",R2)),ISERROR(FIND("08-07",R2)),ISERROR(FIND("27B",R2)))),"UPDATED","")

ans drag down as necessary!

Regards,
Stefi


€˛JPS€¯ ezt Ć*rta:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.
--
JPS



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Character Search a cell

With
A1: '01-08
A2: '08-07
A3: '27B

And ...
E1: (text to be tested.....eg "abc 01-08 xyz"...without the quotes)

This formula returns 1 if at least one of the A1:A3 values is in the text:
B1: =MAX(INDEX(COUNTIF(C1,"*"&$A$1:$A$3&"*"),0))

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"JPS" wrote in message
...
In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of
them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.
--
JPS



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Character Search a cell

On Thu, 13 Mar 2008 01:03:01 -0700, JPS wrote:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.



=IF(SUMPRODUCT(--ISNUMBER(SEARCH(rng,C1))),"UPDATED","")

where rng is a range of cells containing the text strings you wish to search
for. C1 is the cell being searched.
--ron
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Character Search a cell

A variation...

=IF(COUNT(INDEX(SEARCH(rng,C1),0)),"UPDATED","")

--------------------------

Best Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Ron Rosenfeld" wrote in message
...
On Thu, 13 Mar 2008 01:03:01 -0700, JPS
wrote:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of
them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.



=IF(SUMPRODUCT(--ISNUMBER(SEARCH(rng,C1))),"UPDATED","")

where rng is a range of cells containing the text strings you wish to
search
for. C1 is the cell being searched.
--ron




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Character Search a cell

I actually used the following and got what I expected Thanks
'=+IF(COUNT(SEARCH($L$1:$N$1,S496)),"UPDATED"," ")
--
JPS


"Ron Coderre" wrote:

A variation...

=IF(COUNT(INDEX(SEARCH(rng,C1),0)),"UPDATED","")

--------------------------

Best Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Ron Rosenfeld" wrote in message
...
On Thu, 13 Mar 2008 01:03:01 -0700, JPS
wrote:

In Excel I need to character search a cell and determine if one of 3 text
strings, 01-08, 08-07, 27B can be found anywhere in the cell, if one of
them
are found I need UPDATED to show in the results cell, if none of then are
found the results cell will be blank.



=IF(SUMPRODUCT(--ISNUMBER(SEARCH(rng,C1))),"UPDATED","")

where rng is a range of cells containing the text strings you wish to
search
for. C1 is the cell being searched.
--ron





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
Search and replace character with in excell cell JRR Excel Discussion (Misc queries) 1 July 22nd 05 08:30 PM
How can I search for more than one text character in a cell? Dolores Excel Worksheet Functions 3 May 19th 05 09:44 PM
How do I search for more than one text character in one cell? Dolores Excel Worksheet Functions 0 May 19th 05 06:54 PM
Is it possible to search for the "?" character RagDyeR Excel Worksheet Functions 1 April 9th 05 08:46 PM
Search for a specific character in a cell in an if statement mcl Excel Worksheet Functions 2 January 4th 05 09:14 PM


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

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"