Conditional formatting of cells to the left, based on a symbol entery in a cell

rajiv_bishnoi

New Member
Joined
Jan 13, 2008
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a sheet wherein a symbol is inserted through a formula based on entry of name (and some other parameters elsewhere) in the range D5:M12. What I would like to do is auto coloring the cells to the left of the symbol , using conditional fomatting or otherwise, as shown below. Will appreciate help on how to do so.

View attachment 98724
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
if you select C5:L12 - so you offset by 1 cell to the left
and then the formula would be
=D5 = symbol
that should do it

Book2
ABCDEFGHIJKLM
1
2
3
4
5!
6
7!
8
9
10!
11
12
13
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C5:L12Expression=D5="!"textNO


i have used the symbol !
for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
C5:L12 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=D5="!"

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

attachment did not open

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Hi, I have a sheet wherein a symbol is inserted through a formula based on entry of name (and some other parameters elsewhere) in the range D5:M12. What I would like to do is auto coloring the cells to the left of the symbol , using conditional fomatting or otherwise, as shown below. Will appreciate help on how to do so.

View attachment 98724

if you select C5:L12 - so you offset by 1 cell to the left
and then the formula would be
=D5 = symbol
that should do it

Book2
ABCDEFGHIJKLM
1
2
3
4
5!
6
7!
8
9
10!
11
12
13
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C5:L12Expression=D5="!"textNO


i have used the symbol !
for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
C5:L12 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=D5="!"

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

attachment did not open

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
Thanks Etaf,

I want all cells in the selected range , to the left of the symbol to be auto-colored

Unable to use XL2BB [ restricted], but hope this picture is visible?
1694945035670.png


1694945035670.png
 
Upvote 0
try
=COUNTIF(D5:$M5,"!")>0
where I have used ! as the symbol
Whats the symbol you are using ?

Book2
ABCDEFGHIJKLM
1
2
3
4
5!
6!
7!
8!
9!
10!
11!
12!
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D5:M12Expression=COUNTIF(D5:$M5,"!")>0textNO
 
Upvote 0
Another option to consider if the only possible cell values are the symbol in question or "" or empty

23 09 17.xlsm
DEFGHIJKLM
5x
6x
7x
8x
9x
10
11x
Colour Left
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D5:M12Expression=COUNTA(D5:$M5)textNO
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,987
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top