Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
In producing reports by mailmerge from Excel into Word, an Excel cell holding
a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
The simplest way to revert to previous behaviour is generally to check
Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#3
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]() Thanks Peter, wasnt my post but solved my issue from earlier! Peter Jamieson Wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 -- Capt_Trips |
#4
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Thanks.
It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#5
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
You cn get the percentage using a nested mergefield, e.g.
{ ={ MERGEFIELD mypercentage }*100 \#0.0 } Peter Jamieson "John Richmond, Watford UK" wrote in message ... Thanks. It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#6
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Thanks Peter, I'll try it and let you know how I got on
John "Peter Jamieson" wrote: You cn get the percentage using a nested mergefield, e.g. { ={ MERGEFIELD mypercentage }*100 \#0.0 } Peter Jamieson "John Richmond, Watford UK" wrote in message ... Thanks. It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#7
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Peter,
I did that exactly and it came up with a syntax error. "Peter Jamieson" wrote: You cn get the percentage using a nested mergefield, e.g. { ={ MERGEFIELD mypercentage }*100 \#0.0 } Peter Jamieson "John Richmond, Watford UK" wrote in message ... Thanks. It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#8
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Both sets of {} need to be the sort you insert using ctrl-F9. Everything
else is plain text you can type in the usual way. If you just used plain text braces around the mergefield you will get a syntax error. Peter Jamieson "John Richmond, Watford UK" wrote in message ... Peter, I did that exactly and it came up with a syntax error. "Peter Jamieson" wrote: You cn get the percentage using a nested mergefield, e.g. { ={ MERGEFIELD mypercentage }*100 \#0.0 } Peter Jamieson "John Richmond, Watford UK" wrote in message ... Thanks. It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
#9
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
See the relevant section of http://www.gmayor.com/formatting_word_fields.htm
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org John Richmond, Watford UK wrote: Peter, I did that exactly and it came up with a syntax error. "Peter Jamieson" wrote: You cn get the percentage using a nested mergefield, e.g. { ={ MERGEFIELD mypercentage }*100 \#0.0 } Peter Jamieson "John Richmond, Watford UK" wrote in message ... Thanks. It worked except for % where I had to be content with an output with a decimal point viz: .79% This came as a result of using a format of \#.00%. The % data itself is, of course, all stored as numbers 1 but displayed in Excel as a %ge. I'm not changing that so will be happy with what I've got. Many thanks John Richmond "Peter Jamieson" wrote: The simplest way to revert to previous behaviour is generally to check Word|Tools|Options|General|Confirm conversion at Open, re-connect to your Excel data source and choose the DDE option when offered. I suspect you must have been using that in Word XP as you would probably be having the same problems. Alternatively, you can use "formatting switches" in the fields, e.g. use Alt-F9 to show { MERGEFIELD mynumber \*Mergeformat } and change it to { MERGEFIELD mynumber \#0.00 } (you can leave the Mergeformat in there if you want) The formats are documented in Word Help. Peter Jamieson "John Richmond, Watford UK" John Richmond, Watford wrote in message ... In producing reports by mailmerge from Excel into Word, an Excel cell holding a calculated value formatted to display as 3.45 will be shown as 3.449993782999200000. Even cells carefully formatted to integers e.g 3 will often transfer to 3.0000000000000001. Percentages such as 78% get transferred as 0.798745300322220 Only if the values have been typed in will the mail merge show the correct number. This did not happen with previous versions of Word and Excel, where the number was transferred as formatted in Excel. Is there any way of putting this right? Versions in use are Word 2002 SP3 and Excel 2002 SP3 |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format Fractions in Mail Merge. | Mailmerge | |||
Mail Merge Word 2003 Excel 2003 database | Mailmerge | |||
cannot mail merge from excel to word | Mailmerge | |||
2003 Small Business - Mail Merge from Excel Sheet Duplication Oddi | Mailmerge | |||
mail merge with attachments | Mailmerge |