Back to ArticlesBack

Subscribe to our newsletter

Get the latest articles and resources sent straight to your inbox.

MPUG

Microsoft Project 2007 offers many features to customize the components of a Gantt chart. If you’re presenting your schedule using a Gantt chart, you can use Project 2007’s advanced formatting features to visually emphasize the crucial project data displayed on the chart. I’ll demonstrate five techniques herewith by using the short sample schedule shown in Figure 1.

Figure 1. Our sample schedule.

5 Tips for Formatting Text on a Gantt Chart

Note:Always do formatting on a copy of your original project plan file and use that copy for the presentation.

Tip 1. How to Change the Date Display Format on the Gantt Chart

Project displays milestone dates by default on a Gantt chart. Date display format applies to all the dates displayed on the chart, and it can be easily changed in the Layout dialog box as follows: Right click at any point in the blank chart area to open the shortcut menu and then select Layout on the menu. In the Layout dialog box, select a date format in the Date format box and click OK.

Figure 2. The shortcut menu and Layout dialog box.

5 Tips for Formatting Text on a Gantt Chart

Note that if you select Default on the list, the Date format selection on the View tab of the Options dialog box in the Tools menu determines the date display format for all the Gantt chart dates.

Tip 2. How to Change the Position of the Date Displayed on a Milestone

As Figure 1 shows, there’s a deadline arrow just on the top of the date displayed on the right of the milestone. It’s possible to place the milestone date to another position — to the left, up, down or inside the milestone diamond.

The left of the milestone diamond seems the best position to place the date. To change the position, double-click the diamond to open the Format Bar dialog box and then click the Bar Text tab. Delete Finish field in the Right box and then enter or select Finish in the Left box as shown in Figure 3.

Figure 3. The Format Bar dialog box.

5 Tips for Formatting Text on a Gantt Chart

Click OK button to close the dialog box and apply the changes that you’ve made. The date will now be displayed on the left of the diamond as shown in Figure 4.

Figure 4. The milestone date on the left.

5 Tips for Formatting Text on a Gantt Chart

Note that the new setting will apply only to the Finish – Ph A milestone. The Bar Styles dialog box is used to change the position of the date displayed for all the existing milestones and the new ones to be created. There are several ways to open the Bar Styles dialog box as listed below:

Right click at any point in the blank chart area to open the shortcut menu and then select Bar Styles command on the menu.
Or double-click at any point in the blank chart area.
Or use the Bar Styles menu command on the Format menu.

In the Bar Styles dialog box, click the Milestone line on the Name column and then make the necessary changes in the Text tab in exactly the same way as you did in the Format Bar dialog box. Click OK to close the dialog box and apply changes to all the milestone dates on the chart.

Tip 3. How to Change Text Formatting of the Milestone Date

We can change the format of the milestone text displayed by using the Text Styles dialog box. To open the dialog box, select the Text Styles menu command on the Format menu. Then select Bar Text – Left on the Item to Change drop-down list.

Figure 5. The Text Styles dialog box.

5 Tips for Formatting Text on a Gantt Chart

You can select underlining and change the font, font style, size, and color of the text displayed by using the Text Styles dialog box. Click OK to close the dialog box and apply any changes that you’ve made.

Note that the Background Color and Background Pattern boxes for the “Bar Text” in Text Styles dialog box are grayed out.

Tip 4. How to Display More than One Field in the Same Position

It’s possible to display more than one field at any position of the Gantt chart bars, including the milestones.

As an example, we can display both the milestone name and the date on the left of the milestone diamond (or bar). To do this, it’s necessary to combine both values in a custom text field by using a simple expression and then select the custom field name in the Left box of the Bar Text tab (see Figure 3). Project will display the value returned by the expression on the left of the milestone diamond. Steps are as follows:

1. To open the Custom Fields dialog box, apply the following command sequence: Tools menu | Customize menu command| Fields… submenu command.

2. In the Custom Fields dialog box, select Text1 field and click the Rename… button; then enter BAR_INFO in the Rename Field dialog box and click OK to return to the Custom Fields dialog box.

Figure 6. The Custom Fields dialog box.

5 Tips for Formatting Text on a Gantt Chart

3. Click the Formula… button to open the Formula for “BAR_INFO” dialog box. We’re now going to build an expression to combine the field values in the Edit formula box below the BAR_INFO= label.

Figure 7. The Edit Formula dialog box.

5 Tips for Formatting Text on a Gantt Chart

A simple expression (or formula) would be as follows: [Name] & [Finish]. We can type the formula in or build it by using the buttons.

Brackets around the field names are required by syntax. If you insert a field name to the formula by selecting from the list opened by clicking the Field button, Project will automatically put brackets around the field name.

Ampersand (“&”), one of the operators available, is called a string concatenation operator. It combines two strings into a single string. You can select any operator from the Formula Toolbar to build an expression.

4. Now let’s make a couple of improvements in the formula. It’s possible to display the date in a format independent of the date display format setting in the Layout dialog box. For this purpose, we’ll use the ProjDateConv and Ucase function in the formula. Those functions can be found in the Conversion and Text submenu of the Function button list. Click the Help button to have more information on the functions and operators.

Instead of the [Finish] expression we’re going to use the following one:

Ucase( ProjDateConv( [Finish], pjDate_mmm_dd ) )

In the above expression ProjDateConv function gets the finish date from the first parameter and then formats and returns the date as specified by the second parameter pjDate_mmm_dd.

The Ucase function converts any text in the returned value by the ProjDateConv function to uppercase. The finished expression will be as follows:

[Name] & ” – ” & Ucase(ProjDateConv([Finish],pjDate_mmm_dd))

with a hyphen and spaces added in between the date and the task name for clarity. Cut, copy, and paste functions work in the formula box.

5. Enter the formula in the formula box and then click OK. A confirmation dialog box will pop up. Click OK again to close it. Click OK once again in Custom Fields dialog box to close it.

Project will now automatically evaluate the formula and populate the BAR_INFO field on each task line with the returned string value. We don’t need to add BAR_INFO field to the table.

6. Next, we’ll display the BAR_INFO value only for the milestone Finish – Ph A. Double-click the diamond and replace Finish with BAR_INFO by selecting from the field list in the Bar Text tab of the Format Bar dialog box (To browse quickly to the fields starting with “T”, just press <T> on the keyboard.)

Figure 8. The Format Bar dialog box.

5 Tips for Formatting Text on a Gantt Chart

7. Click OK to close the dialog box and apply the change. The Gantt chart will look like Fgure 9.

Figure 9. The milestone name and date now display on the left.

5 Tips for Formatting Text on a Gantt Chart

Tip 5. How to Change Background Formatting of Gantt Chart Text

The Background Color and Background Pattern boxes for the “Bar Text” in the Text Styles dialog box are grayed out. We’re going to draw a colored rectangle and use it as a background to the text.

1. Display Drawing toolbar by selecting from the Toolbars submenu (View menu).

2. Draw a rectangle below the milestone text and make it big enough to cover all the text.

3. Right click on the rectangle to open the shortcut menu and select the Properties menu command. The Format Drawing dialog box will open. In the Line & Fill tab select none for line and yellow for custom fill color. In the Size & Position tab attach the rectangle to the left of the task ID # 4 (Finish – Ph A milestone) as shown in Figure 10.

Figure 10. Attach the rectangle to the milestone.

5 Tips for Formatting Text on a Gantt Chart

Now the rectangle will move together with the milestone on the schedule.

4. Next, reposition the yellow rectangle over the text displayed by using the mouse. Project will automatically adjust Horizontal and Vertical values in the Format Drawing dialog box. Resize the rectangle if necessary. Right click the rectangle and select Order in the shortcut menu and then select Send To Back in the submenu (Figure 11).

Figure 11. Place the yellow rectangle as background to the text.

5 Tips for Formatting Text on a Gantt Chart

The chart will look like Figure 12.

Figure 12. Text with colored background

5 Tips for Formatting Text on a Gantt Chart

5. Save the file.

If we now change the task durations, the text position and date value will be adjusted accordingly as seen in Figure 13. On the other hand, if we change the date display format, the milestone date display format won’t be affected.

Figure 13. Text with a colored background with a new position and string value adjusted automatically. The date display format remains unchanged.

5 Tips for Formatting Text on a Gantt Chart

Related Content

Webinars (watch for free now!):
Back to the Future – When Gantt has Style

Articles:
Storytelling with Your Gantt Chart


Get Weekly PM Insights

Join 500,000+ PMs receiving updates on the latest PM methodologies, PDU opportunities, tool reviews, career tips, and member exclusives.

PMI ATP
PMI Authorized Training Partner
REP #4082

Learning Paths

PMP® TrainingCAPM® TrainingPgMP® TrainingPMI-ACP® TrainingMS ProjectMS PlannerMS TeamsJira

PM Resources

PDU TrackerLive WebinarsSalary CalculatorTool ComparisonsJob BoardKnowledge BasePM Glossary

Community

Discussion ForumStudy GroupsEvents Calendar

Follow Us

LinkedInYouTubeTwitterFacebook
MPUG Logo

© 2025 MPUG. All rights reserved.

TermsPrivacySitemap
Articles

5 Tips for Formatting Text on a Gantt Chart

Microsoft Project 2007 offers many features to customize the components of a Gantt chart. If you’re presenting your schedule using a Gantt chart, you can use Project 2007’s advanced formatting […]

8 min read
•over 15 years ago••
I
Ismet KocamanAuthor
Project Management
Microsoft Project
Best Practices
Productivity
I
Ismet Kocaman

Content Writer

Ismet Kocaman, MCTS, PMP, is a Mechanical Engineer and has more than 15 years of project management experience in the manufacturing sector. He currently provides consultancy to small to mid-sized companies on project management, reorganizing, and streamlining the manufacturing operations. He also conducts training seminars for engineers on MS Project. Contact Ismet at ikocaman.pm@gmail.com.

View all articles by Ismet Kocaman
Related Content

Continue Reading

Discover more insights and articles that complement your current reading

Two Project Manager Agent Features You Might Like
Articles
5 min read

Two Project Manager Agent Features You Might Like

Discover two game-changing features of Microsoft’s Project Manager Agent including agent-to-agent communication and the new integrated interface in Planner.

E
Erik van Hurck
29 days ago
Read
Master Dependency Analysis in Microsoft Project with SSI Tools!
Articles
2 min read

Master Dependency Analysis in Microsoft Project with SSI Tools!

Learn how to master dependency analysis in Microsoft Project using SSI Tools’ Directional Path, Connecting Path, and Dependency Tracer to analyze predecessors, successors, and project logic.

K
Kenny Arnold
about 1 month ago
Read
A PM’s Halloween Survival Guide
Articles
5 min read

A PM’s Halloween Survival Guide

Discover the spooky parallels between Halloween and project management, from scope creep monsters to ghosted team members, in this fun survival guide for PMs.

R
Ronald B. Smith, MBA, PMP
about 2 months ago
Read
Explore All Articles