Conditional Formatting Battleship Style

LeonardH

New Member
Joined
Dec 21, 2013
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone!

I need a formula to add conditional formatting to change the color of cells based on the value called out in the row so that the contents of each cell can otherwise be edited.

In the example below, the header row is fixed and the contents will not change. The dates in each row of the Forecast column, however, may change. On each row, I would only like the cell highlighted in the column that corresponds with the forecasted date.

ForecastJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
Jul-21
Blue​
Aug-21
Blue​
May-21
Blue​
Jul-21
Blue​
Jan-21
Blue​
Oct-21
Blue​
Aug-21
Blue​

Perhaps I am overthinking this? I have been known to do that.

Thanks in advance for any help! I really appreciate it!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLM
1ForecastJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
2Jul-21Blue
3Aug-21Blue
4May-21Blue
5Jul-21Blue
6Jan-21Blue
7Oct-21Blue
8Aug-21Blue
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:M8Expression=$A2=B$1textNO
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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