Based on cell value, locate a cell in a specific location and colour

Jackman1

New Member
Joined
Jan 13, 2015
Messages
17
IMAGE.jpg

Hi everyone,

Help! scratching my head all day!

I'm looking for a conditional format formula which would result in the attached image;
If "Tentative" (as DB4), colour CP4 based on the value in B4.
In English, If a Cell is "Tentative", look back 12 cells (based on changeable figure in B4) and colour accordingly.

I can add a hidden reference row if required in Row 5

As always thank you for any help you can offer, I'm trying to learn :)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,729
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=AND($DB4="Tentative",COLUMN($DB4:$DB4)-COLUMN()=$B4)
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,499
Office Version
  1. 365
Platform
  1. Windows
Hi, you could try, using the with a formula method.

=OFFSET(G4,0,$B$4,1,1)="Tentative"

You'd need to change the column to the first column in the range you want to conditionally format.
 
Solution

Jackman1

New Member
Joined
Jan 13, 2015
Messages
17
Thanks guys,

Fluff, the issue is the Tentative location will always move. Thanks for looking it though.

FormR, worked a treat, thank you!
 

Fluff

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

Watch MrExcel Video

Forum statistics

Threads
1,129,919
Messages
5,638,989
Members
417,061
Latest member
thematulaak

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