Conditional Formatting using Offset (Gantt Chart)

MixedUpExcel

Board Regular
Joined
Apr 7, 2015
Messages
218
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to put together a Gantt Chart using Conditional Formatting.

Column A has numbers 1 to 50, starting in Cell A3 to Cell A53
Row 2 has Week 1, Week 2 etc from Cell B2 to Cell BA2

I will have formula's in the chart which will either put the word Start or the word End (based on data from another sheet).

I would like to set Conditional Formatting to find the Word Start and then highlight all cells to the right until it finds the word End.

I tried what I thought was logical but it's not showing any results:

Code:
=OFFSET(A3,0,match("START",A3:BA3,0),1,match("END",A3:BA3,0)-match("START",A3:BA3,0))

With the Range: =$B$3:$FA$3

What am I doing wrong?

Thanks.

Simon
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
This has now been solved.. No longer using Offset as I understand that Conditional Formatting only works if a condition is TRUE.
 
Upvote 0

Forum statistics

Threads
1,206,755
Messages
6,074,757
Members
446,084
Latest member
WalmitAal

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