Mail Merge issue

B

b_walls1

I am using a word document to mail merge data from an excel spreadsheet.
When i merge figures they appear perfect in the word doc if they are
rounded, but if they are not rounded they appear with loads of figures
after them for example if i place 5.5 in cell it will appear fine in
the word doc but if i put 5.6 it would appear 5.5999999999999996 i
would really appreciate any help. i have tried formatting it into
different types text number s etc but no luck, i don't know where the
error is?:confused:
 
B

b_walls1

your a star thanks a mill that worked using the ' but i don't know if we
can get this fixed without using the '
 
D

David McRitchie

Hi ....,

Assuming that you would not want such a column formatted as text you can still stay within
Excel by using a helper column using the TEXT Worksheet Funciton
G1: =TEXT(D1,"#,###.00") or other format of your choice.

Have used the above, not sure if I have actually used the following with Mail Merge
but I think it should work and it was likely Mail Merge that I created the function in the
first place..

Another way would be to use a user defined function
see my formula.htm page

Function GetText(Cell as Range) as String
On Error Resume Next
GetText = cell.Text
End Function

G1: =GetText(D1)
G1: =personal.xls!GetText(D1)

My page on Mail Merge is
http://www.mvps.org/dmcritchie/excel/mailmerge.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top