• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About
Home / Office / Sum the Total Duration for Tasks in MS Project

Sum the Total Duration for Tasks in MS Project

Microsoft Project uses the duration field to calculate the difference between the start and finish dates of a task. But what if you want to sum the durations for all or a set of tasks?

Microsoft Project does not have a field to calculate the total durations for a set of tasks. However this can be easily accomplished by creating a custom field.

Create a Custom Field to Sum Task Duration

  1. Click the Format tab under Gantt Chart Tools on the Ribbon.
  2. Click the Custom Fields button in the Columns group.
Custom Fields Dialog Box in MS Project
  1. Click the list arrow in the top right corner and select Duration as the type of field we want to create.
  2. With Duration1 selected in the list of duration fields, click the Rename button below the list. Enter Duration Total as the name for the new field.
Rename the custom field
  1. Click the Formula button
  2. Click the Field button and select Duration and then Duration again from the submenu.
Enter the formula to sum the total duration of tasks
  1. Click Ok.
  2. A message appears warning you that because the field will be calculated by a formula, any existing data will be lost. Click Ok.
Prompt that the formula may cause loss of existing data
  1. Select the Rollup option. Click the list arrow and change the function to Sum.
  2. Click Ok to save and close the dialog box.

The field has been created. Now it needs to be inserted into the table.

Insert the Duration Total Column

  1. Right mouse click on the column header to the right of where you want to insert the new Duration Total column.
  2. Select Insert Column from the menu. Type “du” to scroll through the list quickly and select the Duration Total field.
Insert the total duration column to the Entry table of the Gantt Chart

Watch the Video

Related Posts:

  • Sum formulas only in Excel
    Sum Formulas Only in Excel

Reader Interactions

Comments

  1. Steve Powell says

    16 November 2017 at 8:35 pm

    This is an excellent presentation.
    Can you simply get a sum of the days for each tasks?
    i.e. say a task has 2+4+10+3 = 19 days but there is gaps in calendar and duration may show say 28 days.
    Thank you,
    Steve

    Reply
    • computergaga says

      17 November 2017 at 8:01 am

      Thank you Steve.
      If you create this effect by splitting the task. The task would continue to show 19 days duration despite the nd date reflecting 28 days of calendar with gaps in the calendar. Then the tutorial continues to work. The Split Task button is on the Task tab next to Link Tasks button.
      Click the button and then click and drag the parts of the task bar to create splits.
      Alan

      Reply
      • Adam Price says

        1 March 2018 at 9:34 am

        Hello Steve,
        How do i create a seperate running duration box which takes the data from start 1 and finish 1 columns. I need to compare sla start / finish against actual start / finish and then compare the total durations

        Reply
  2. Vivi says

    4 October 2024 at 8:24 pm

    The duration field is no more available in Project professional. Any other alternative?

    Reply
    • Alan Murray says

      21 December 2024 at 4:33 pm

      I don’t use MS Project anymore, so am out of touch with this. There would surely be an alternative though. It surprises me if this is the case.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·