excel wont add

we all struggle with the same issue when exporting data from primavera p6 to microsoft excel for analysis, progress updating and graphing. excel does not seem to recognize numbers as numbers!

that is because p6 formats all data exports as text (appends an apostrophe in front of all data). 

this makes getting clean data from p6 (even filtered data) extremely difficult. often we would like to manipulate the data in excel (such as performing calculations in excel using p6 numeric, date or cost data).

while you might think this has an easy fix in excel, using the “format cells” function will not change the text data to the data format you require. you would actually have to go through each cell individually to change it from text to number! 

this following “secret” tip is an even quicker and easier way to solve this issue using multiplication. watch the video below to learn how: 

when exporting data from primavera p6 to excel, we want to make sure that excel recognizes numbers as numbers. 

i exported a large set of data from p6 into excel and as you can see, the numbers are positioned to the left in their fields – meaning, they are formatted as text not numbers. if we want to make that correction, we have to go through each cell individually and hit “enter” to transform it into a number format.

p6 export to excel

the “number formatting” options in excel also do not resolve this. 

but i have got a quick tip for you! 

we are going to multiply all of these numbers by one to transform them into numbers.

i start by adding “1” to any empty cell, hit copy, and select all of the cells with the number values we want to convert. 

 

p6 export to excel

we then right-click and go to “paste special” and go down in the menu to “paste special” again to get the pop-up box. 

p6 export to excel

from here, we select the “multiply” option in the “operation” section and hit “ok”. 

select multiply

and this is it! simple as that. 

p6 export to excel

another tip i can share with you is using excel’s “text to column” option on the data tab. 

 

to change the format of exported duration, date, or cost fields from text to the proper data format, start by selecting the column (only select one column at a time).

here i selected column e (original duration). after selecting your desired column, on the “data” tab. 

excel data tab

in the data tab, look within the “data tools” group and click on “text to columns”

text to column

next in the “convert text to columns wizard – step 2 of 3” dialog, select the “tab” checkbox under the delimiter group. in the “text qualifier” drop-down box, select the apostrophe “’” and click on “next”.

p6 export to excel

then, in the “convert text to columns wizard – step 3 of 3” dialog do not change any of the default settings but check to confirm the following and click “finish”. 

  • under “column data format” grouping, ensure you selected “general”
  • in the “destination” textbox, ensure that the column shown is the same as the one selected.

p6 export to excel

we successfully converted the data in column e (original duration) to numbers with the apostrophes removed.

 

i hope you found this tip useful. it has certainly helped me!