ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Formatting based on text within a cell w/ text AND num (https://www.excelbanter.com/excel-worksheet-functions/123525-conditional-formatting-based-text-within-cell-w-text-num.html)

Shirley

Conditional Formatting based on text within a cell w/ text AND num
 
Thanks T. Valko for the array formulas. They worked perfectly!

Now I have another question. How do I use conditional formatting to
highlight all cells that contain "S" in yellow and "V" in purple, if the
cells have both text and numbers?

Here's what I want to do:

A1: S=8.0
A2: (blank)
A3: V=10.0
A4: S=4.0

Based on the cells listed above, how do I use conditional formatting to do
the following?

Results:
A1 and A4: highlighted in YELLOW
A3: highlighted in PURPLE

Thanks in advance!


John Bundy

Conditional Formatting based on text within a cell w/ text AND num
 
In the conditional formatting set the first criteria to formula and enter
=FIND("s",A1)
change colors as desired

In the second condition add =FIND("v",A1) and adjust those colors.
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Shirley" wrote:

Thanks T. Valko for the array formulas. They worked perfectly!

Now I have another question. How do I use conditional formatting to
highlight all cells that contain "S" in yellow and "V" in purple, if the
cells have both text and numbers?

Here's what I want to do:

A1: S=8.0
A2: (blank)
A3: V=10.0
A4: S=4.0

Based on the cells listed above, how do I use conditional formatting to do
the following?

Results:
A1 and A4: highlighted in YELLOW
A3: highlighted in PURPLE

Thanks in advance!


Teethless mama

Conditional Formatting based on text within a cell w/ text AND num
 
Select your range
Conditional Formatting
Condition 1
Formula Is: LEFT($A1,1)="S"
format in Yellow

Click Add
Codition 2
Formula Is: LEFT($A1,1)="V"
format in purple

"Shirley" wrote:

Thanks T. Valko for the array formulas. They worked perfectly!

Now I have another question. How do I use conditional formatting to
highlight all cells that contain "S" in yellow and "V" in purple, if the
cells have both text and numbers?

Here's what I want to do:

A1: S=8.0
A2: (blank)
A3: V=10.0
A4: S=4.0

Based on the cells listed above, how do I use conditional formatting to do
the following?

Results:
A1 and A4: highlighted in YELLOW
A3: highlighted in PURPLE

Thanks in advance!



All times are GMT +1. The time now is 02:51 PM.

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