Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use of wildcards in conditional formatting

327 views
Skip to first unread message

JohnPM

unread,
Oct 16, 2009, 3:22:01 AM10/16/09
to
I use three conditions in the active cell. Entry "A" returns yellow
background, Entry "O" returns green and entry "S" returns red. I would like
to get a RED return in all cases "S" is used in the active cell as in S1 or
S2 or S3 or S4 etc. Wildcard is apparently not an option in CF. Any neat
solutions?

David Biddulph

unread,
Oct 16, 2009, 3:33:13 AM10/16/09
to
=ISNUMBER(FIND("S",A1)) if you want it case-sensitive
=ISNUMBER(SEARCH("S",A1)) case-insensitive.
--
David Biddulph

Per Jessen

unread,
Oct 16, 2009, 3:34:10 AM10/16/09
to
Hi

Try this formula:

=IF(ISERROR(SEARCH("s",A2;1)),,1)>0

Regards,
Per

"JohnPM" <Joh...@discussions.microsoft.com> skrev i meddelelsen
news:FDB08172-91F8-43E4...@microsoft.com...

Jacob Skaria

unread,
Oct 16, 2009, 3:34:01 AM10/16/09
to
Either try the below for text starting with 'S'
=LEFT(A1,1)="S"

OR for a 'S' anywhere in the text
=ISNUMBER(SEARCH("S",A1))

If this post helps click Yes
---------------
Jacob Skaria

Jacob Skaria

unread,
Oct 16, 2009, 4:52:01 AM10/16/09
to
To try out those you will have to select condition using formula within CF.
Follow the below steps

1. Select the cell/Range (say A1:A10). Please note that the cell reference
A1 mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection

2. From menu Format>Conditional Formatting>

3. For Condition1>Select 'Formula Is' and enter the formulas

4. Click Format Button>Pattern and select your color (say Red)

5. Hit OK

If this post helps click Yes
---------------
Jacob Skaria

T. Valko

unread,
Oct 16, 2009, 11:54:02 AM10/16/09
to
Try this:

=LEFT(A1)="S"

--
Biff
Microsoft Excel MVP


"JohnPM" <Joh...@discussions.microsoft.com> wrote in message
news:FDB08172-91F8-43E4...@microsoft.com...

0 new messages