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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,831
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,502
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,831
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,091
Messages
5,640,059
Members
417,125
Latest member
sfreind

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