Conditional formatting based on row data

default_name

Board Regular
Joined
May 16, 2018
Messages
155
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hey all,

I am not sure if this is even possible, but I figured I'd ask/give it a shot.

In a spreadsheet I have a marker (denoted in cells with a * symbol).
Is there a way (without using VBA) to use conditional formatting to adjust the colors of the cells around the marker?

The following example tracks where certain people are at in a list of steps. The * symbol shows where they are. (ie: Bobby is on Step 7).
Is there a way to use Conditional Formatting to change the color of the cells to the left of the * (stopping with column B) to gray, and to change the cells containing the marker as well as cells to the right to blue?

ABCDEFGHI
1NameStep 1Step 2Step 3Step 4Step 5Step 6Step 7Step 8
2Jimmy
[GRAY]​
[GRAY]
* [BLUE]​
[BLUE][BLUE][BLUE][BLUE][BLUE]
3Steven
* [BLUE]​
[BLUE][BLUE][BLUE][BLUE][BLUE][BLUE][BLUE]
4Nadia[GRAY][GRAY][GRAY][GRAY]
* [BLUE]​
[BLUE][BLUE][BLUE]
5Bobby[GRAY][GRAY][GRAY][GRAY][GRAY][GRAY]* [BLUE][BLUE]

6
William[GRAY][GRAY][GRAY]
* [BLUE]​
[BLUE][BLUE][BLUE][BLUE]
7Lindsey[GRAY]
* [BLUE]​
[BLUE][BLUE][BLUE][BLUE][BLUE][BLUE]
8Marcus[GRAY][GRAY][GRAY][GRAY][GRAY][GRAY][GRAY]
* [BLUE]​


Hope that makes sense. I wanted to try to illustrate it in the above table, but I did not see any color options.

Again, I am not sure if this is even possible without VBA, but if it is, this would be great!
Thanks
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows
So what exactly are the criteria, as there doesn't seem to be anything consistent.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

default_name

Board Regular
Joined
May 16, 2018
Messages
155
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
So what exactly are the criteria, as there doesn't seem to be anything consistent.
Yeah the data inconsistency is why I brought this back to you guys.
The criteria is a non-blank cell. Sometimes there is a *, other times there is text or a note, and other times there is a date. So I guess it'd just be searching for the first non-blank cell in the range from the right (or the first cell from the right that has some sort of content in it).
Hope that makes sense.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
13,992
Office Version
  1. 365
Platform
  1. Windows
As long as the empty cells are empty and not blank (there is a difference).
Book1
ABCDEFGHI
1NameStep 1Step 2Step 3Step 4Step 5Step 6Step 7Step 8
2Jimmy12/20/19*
3StevenHasn't started
4Nadia2/15/2020
5Bobby03/10/2020*
6Williamout of supplies
7Lindsey*
8Marcus01/04/20204/21/2020*
Sheet9
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:I8Expression=COUNTA($B2:B2)=COUNTA($B2:$I2)textNO
 

default_name

Board Regular
Joined
May 16, 2018
Messages
155
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
You guys are the best!
Thank you Jasonb75! It works perfectly!
Again, thank you for your patience and my apologies for dragging this out.
I will try to be more careful to include everything at the beginning next time.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Another option

+Fluff New.xlsm
ABCDEFGHI
1NameStep 1Step 2Step 3Step 4Step 5Step 6Step 7Step 8
2Jimmy12/20/19*
3StevenHasn't started
4Nadia2/15/2020
5Bobby03/10/2020*
6Williamout of supplies
7Lindsey*
8Marcus########4/21/2020*
Costs
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:I8Expression=COLUMN(B2)>=LOOKUP(2,1/($B2:$I2<>""),COLUMN($B:$I))textNO
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Forum statistics

Threads
1,144,629
Messages
5,725,381
Members
422,622
Latest member
Paranthem

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
Top