How To Display Lag between Tasks in Your Gantt Chart
By default, the lag set between tasks is displayed in the Predecessor column
of the Gantt chart view. Neither Microsoft Project 2007 nor Project 2010 has a
separate field to display the lead or lag of specific tasks.
You can display the lag as a separate field by following these steps:
1. In Project 2007 choose Tools, Customize Fields. In Project 2010 choose Project ribbon | Custom Fields in the Properties group.
2. In the Custom Fields dialog, select the Task radio button. Then choose the Type drop down and select Text.
3. Select Text1 and click the Rename button. Change the name to "Lag" and choose OK. This will display "Lag (Text1)."
4. Click the Formula button of Custom attributes, enter the following formula, and click OK:
IIf(InStr([Predecessors],"+")<>0, Mid([Predecessors],InStr([Predecessors],"+"),Len([Predecessors])), "")
You'll get a warning message that existing data in the Lag field will be deleted because now all values will be calculated by the formula. Click OK.
5. Insert a column with the Field name as Lag (Text1) in Project 2007 by choosing Insert | Column. In the Field name dropdown, choose Lag (Text1). In Project 2010, just right-click on the column next to which you want the new column added and choose Insert Column. Scroll down to Lag (Text1) and select it.
You may be wondering about that formula I've asked you to enter. What does the code mean?
For the purposes of illustration, let's say the lag between Prepare and Review tasks is 1FS+2days (translated to: "The task is planned to Start with a lag time of two days after the Finish of its predecessor task").
The part of the code that specifies:
InStr([Predecessors],"+")
returns the position of + in the [Predecessors] field. That's four in the example shown in the screenshot.
This code:
Mid([Predecessors],InStr([Predecessors],"+"),Len([Predecessors]))
extracts the text from + to the end of the string, which is "+2days."
If you want display the lag to the right or left of the task bar, follow these steps:
1. In Project 2007 choose Format | Bar Styles. In Project 2010, choose Format ribbon | Bar Styles in the Bar Styles group.
2. Select the rows in the top area that you want the lag displayed next to.
3. Select the Text tab in the bottom and choose the dropdown for Left or Right.
4. Select the field name Lag (Text1) and press OK.
Sai Prasad, MCTS, PMP, PMI-SP, has been with service provider Cognizant since 2001, where he was named winner of the company's Global Trainer of the Year award. Sai has conducted 5,000-plus hours of training in technical and project management topics. He's also the editor of the project management book, Forecast Scheduling with Project 2010. You can read Sai's blog at http://www.sainivas.com. Contact him at mailto: sai@sainivas.com.
You can display the lag as a separate field by following these steps:
1. In Project 2007 choose Tools, Customize Fields. In Project 2010 choose Project ribbon | Custom Fields in the Properties group.
2. In the Custom Fields dialog, select the Task radio button. Then choose the Type drop down and select Text.
3. Select Text1 and click the Rename button. Change the name to "Lag" and choose OK. This will display "Lag (Text1)."
4. Click the Formula button of Custom attributes, enter the following formula, and click OK:
IIf(InStr([Predecessors],"+")<>0, Mid([Predecessors],InStr([Predecessors],"+"),Len([Predecessors])), "")
You'll get a warning message that existing data in the Lag field will be deleted because now all values will be calculated by the formula. Click OK.
5. Insert a column with the Field name as Lag (Text1) in Project 2007 by choosing Insert | Column. In the Field name dropdown, choose Lag (Text1). In Project 2010, just right-click on the column next to which you want the new column added and choose Insert Column. Scroll down to Lag (Text1) and select it.
You may be wondering about that formula I've asked you to enter. What does the code mean?
For the purposes of illustration, let's say the lag between Prepare and Review tasks is 1FS+2days (translated to: "The task is planned to Start with a lag time of two days after the Finish of its predecessor task").
The part of the code that specifies:
InStr([Predecessors],"+")
returns the position of + in the [Predecessors] field. That's four in the example shown in the screenshot.
This code:
Mid([Predecessors],InStr([Predecessors],"+"),Len([Predecessors]))
extracts the text from + to the end of the string, which is "+2days."
If you want display the lag to the right or left of the task bar, follow these steps:
1. In Project 2007 choose Format | Bar Styles. In Project 2010, choose Format ribbon | Bar Styles in the Bar Styles group.
2. Select the rows in the top area that you want the lag displayed next to.
3. Select the Text tab in the bottom and choose the dropdown for Left or Right.
4. Select the field name Lag (Text1) and press OK.
Sai Prasad, MCTS, PMP, PMI-SP, has been with service provider Cognizant since 2001, where he was named winner of the company's Global Trainer of the Year award. Sai has conducted 5,000-plus hours of training in technical and project management topics. He's also the editor of the project management book, Forecast Scheduling with Project 2010. You can read Sai's blog at http://www.sainivas.com. Contact him at mailto: sai@sainivas.com.
Labels: MS Project - Lag
9 Comments:
At Monday, September 22, 2014 2:23:00 PM , Unknown said...
Search engine ranking, as well as SEARCH ENGINE OPTIMIZATION, is just not skyrocket scientific discipline, however it will be complex and it is a constant course of action that will changes on a regular basis 200-101. There is no this sort of issue as a permanent "fix" to be able to amazingly send that you the actual the top ratings once and for all. But below are a few with the basics to look for whenever optimizing your blog intended for the first time.
At Monday, January 16, 2017 2:00:00 AM , Unknown said...
Hello admin,
This is Ayesha Saleem. I have read the post. I am not able to understand what you are talking about. 6 weeks pregnant ultrasound Well, i was searching for pregnancy websites, I need to get some solutions about my pregnancy like missed periods and 6 weeks pregnant ultrasounds.
At Saturday, February 18, 2017 3:16:00 AM , Unknown said...
Hello admin,
This is Ayesha Saleem. I have read this article and I have seen that you have a great information regarding this. malignant peritoneal mesothelioma Well, I am not able to understand with you. I am searching for some information regarding malignant peritoneal mesothelioma.
At Thursday, March 09, 2017 9:49:00 PM , Unknown said...
Hey Satya
I read your post about How To Display Lag between Tasks in Your Gantt Chart.The information you provide in this article is really good. Your way of communication is nice like kittens and keep posting that kind of blogs.
Thanks for sharing this.
At Friday, April 07, 2017 10:41:00 AM , Unknown said...
Thank you so much admin for providing all the information and i really like your blog because it is easy to understand all the information you're sharing with us.
Thanks for posting these posts.
Knowledgeadventure.com Games
At Thursday, April 27, 2017 12:30:00 PM , Ravi27 said...
Hey admin,
I was exactlh
"How To Display Lag between Tasks in Your Gantt Chart" i was exactly searching for that answer and thank GOD i find that.
Thank you so much for sharing this information with us.
123movies
At Saturday, June 17, 2017 4:49:00 AM , Unknown said...
I loved reading your article every thing is described in something extra details.You can like manner check my blog of latest international news in urdu
for without question you can read substantial segments of the latest articles, general routine revived news and numerous fascinating happenings around the world.
At Tuesday, January 23, 2018 11:54:00 PM , Olivia said...
I learn your publish about tips on how to display Lag between tasks on your Gantt Chart.The knowledge you provide listed here is particularly excellent. watch online movies
Your way of communique is first-rate like kittens and hold posting that sort of blogs.
At Tuesday, February 27, 2018 1:50:00 PM , Faisal Shahzad said...
I would like to say thanks to blogger for the amazing sharing which is really full of information and this is really fruitful for me i learned many things from it. latest international urdu news another learning source.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home