Question Locked

Read table in Excel and creating a Gantt Chart like grid

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can I do this with or without Macro/VB code?

I want to create a Gantt Chart like graphic by coloring a grid (columns 1-52
weeks, rows dictated by number of Projects). The Design task would be colored
red, Install Hardware blue etc. Each Project would have 1 row (only) where
Design, Install Hardware etc would be colored in the appropriate cells on the
grid (Project1 Design task would show in 26th cell in the row, Install
Hardware 37th thru 40th)

Note I will create the data from MS Project, but I need to present it
succinctly in Excel for my client.

Table

ProjectID TaskID Start WK Duration

Project1 Design 26 1
Project1 Install Hardware 37 4
Project1 Install Software 41 4
Project1 Configure 49 1
Project1 Prep 50 2
Project1 Support 52 1

Project2 Design 2 1
Project2 Install Hardware 15 2
Project2 Install Software 17 3
Project2 Configure 20 1
Project2 Prep 21 1
Project2 Support 22 4

2 replies

by rakesh.saoji

Assuming this is column sequence

A - Project
B - Phase
C - starting week
D - Duration

introuce anew column E Ending week (Starting week + Duration)

E - C + D

Now mark rest of your columns with week number starting from 1 (i.e., 1, 2, 3, 4, 5....)

Now put below formula in second row, column F (First week) and drag it to entire row...

IF(AND(F$1 >=$C$3, F$1 <=$E$3),1,0)

This will mark active week for phase of that row as 1 and inactive as 0.

Apply this to all remaining rows, ensure to update row number for "C" & "E"

Now go to Format --> Conditional Formatting and select "cell value is" in first inputbox and "Equal to" in second input box and mention background colour of your choice on Format tab. You can keep font colour and background colur same to hide "0" & "1" appearing in each row.

Hope this will help you. Do let me know if you need further help.

Cheers,
Rakesh

This discussion is closed to new replies.