Excel help - condit...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Excel help - conditional formatting

7 Posts
6 Users
0 Reactions
52 Views
Posts: 3271
Full Member
Topic starter
 

I'm trying to create a programme (gantt chart) in excel as I dont have MS Project.

I've got a list of dates across the top (sequential days)
I have start and completion dates in 2 columns down the sides, ie

Start End 5 Nov 6 Nov 7 Nov 8 Nov
6 Nov 7 Nov

I want excel to format (colour fill) the cells between the start and end dates, ie in the example above the cells below 6 Nov and 7 Nov in the top row.

I think I need to use a formula rather than one of the standard options, but can't figure out how to do the conditional expression.

Any suggestions?
Ta


 
Posted : 05/11/2012 11:30 am
Posts: 36
Free Member
 

With start dates in column A, end dates in column B, calendar from C1 onwards then formula in C2 (and copy&pasted across GANTT) is

=AND($A2<=C$1, $B2>=C$1)


 
Posted : 05/11/2012 11:34 am
Posts: 3271
Full Member
Topic starter
 

Stoner, have a 😀

Thanks!


 
Posted : 05/11/2012 11:40 am
Posts: 36
Free Member
 

prego.


 
Posted : 05/11/2012 11:41 am
Posts: 6257
Full Member
 

Bit of a hijack, but is there a way of highlighting a bunch of cells and entering a conditional formatting formula just the once? Whenever I try, it just formats the entire selection based on the first cell's formula conditions, so I have to enter the formula in each individual cell.


 
Posted : 05/11/2012 12:14 pm
Posts: 7270
Free Member
 

The default is an absolute reference (such as $A$1) so you need to muck about with the $ signs so it copies as you wish.


 
Posted : 05/11/2012 12:22 pm
Posts: 0
Full Member
 

A colleague recently sent me a link to this:

http://www.vertex42.com/ExcelTemplates/excel-gantt-chart.html

(sorry for lack of link, work blocks pop ups)

It does work, but I reckon there's space for lots of improvements!

Edit: Hmm Aparently I can do links!!


 
Posted : 05/11/2012 12:22 pm
Posts: 0
Free Member
 

@Flying Ox - probably easiest to do copy / paste special / format - as above you need to make sure the referencing (if any) in the condition format changes as you expect when doing the copy / paste


 
Posted : 05/11/2012 12:32 pm

6 DAYS LEFT
We are currently at 95% of our target!