Article ID: 209115 - View products that this article applies to.
This article was previously published under Q209115
Microsoft Project does not calculate the Schedule Performance Index (SPI) or the Cost Performance Index (CPI). This article contains a sample macro that calculates SPI and CPI for each task in a project.
NOTE: SPI is the ratio of work performed to work scheduled (BCWP/BCWS). CPI is the ratio of budgeted costs to actual costs (BCWP/ACWP).
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
The following macro calculates the Schedule Performance Index (SPI) and the Cost Performance Index (CPI) for each task and places the results into Numeric fields. The SPI for each task is equal to BCWP/BCWS. The CPI for each task is equal to BCWP/ACWP.
To create this macro, follow these steps:
Article ID: 209115 - Last Review: March 26, 2013 - Revision: 5.0