SOLVED

Mail merge from excel to a word document for grade reporting

Copper Contributor

I am importing student grades from an excel spread sheet. The averages are computed using a Sum function.  The cell is formatted with 0 decimal places and shows as a whole number in excel.  When the data is mail merged to a word document, it shows 15 decimal places.   How do I get rid of the 15 decimal places and just have a whole number showing?

2 Replies
best response confirmed by Elizabeth052 (Copper Contributor)
Solution

@Elizabeth052

Do the formatting in Word.

Right-click the average score merge field in the mail merge document.

Select 'Toggle Field Codes' from the context menu.

You'll see something like

 

{ MERGEFIELD Average }

 

or

 

{ MERGEFIELD Average \* MERGEFORMAT }

 

where Average is the name of the merge field. Make it look like this:

 

{ MERGEFIELD Average \# "0" }

 

Press F9 to hide the field code and to update the result.

@Hans Vogelaar 

You are amazing!    That worked perfectly!

 

Thank you so much!

1 best response

Accepted Solutions
best response confirmed by Elizabeth052 (Copper Contributor)
Solution

@Elizabeth052

Do the formatting in Word.

Right-click the average score merge field in the mail merge document.

Select 'Toggle Field Codes' from the context menu.

You'll see something like

 

{ MERGEFIELD Average }

 

or

 

{ MERGEFIELD Average \* MERGEFORMAT }

 

where Average is the name of the merge field. Make it look like this:

 

{ MERGEFIELD Average \# "0" }

 

Press F9 to hide the field code and to update the result.

View solution in original post