A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Some data Merging as Zero, not the text in the data



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 03:47 AM
MaxArk MaxArk is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Mar 2008
Posts: 35
Default Some data Merging as Zero, not the text in the data

I am merging data from an Excel database into a word document using the mail merge feature.

I am merging a column of data with a header name of "unit$".
I have noticed that in most cases it merges data accurately, but with some instances, where the datasource is text, like upper, east , west etc, it will merge into the document as a 0 (zero).

When I look at the merge field in the merge document, it shows as "unit", not "unit$". I cannot seem to place "unit$", as all my efforts automatically revert to "unit"

Is this the cause of my inaccurately merged data? Are "$" not permitted in merge fields?

Jenn
  #2  
Old April 12th, 2010, 04:14 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Some data Merging as Zero, not the text in the data

The issue here is that when Word connects to an Excel data source, a
determination is made of the type of data that is in each of the fields by
the content of the first n records (n maybe 8, but not sure about that)

The problem that you are experiencing can be overcome by ensuring that the
first record in the datasource ( a dummy record if necessary) contains text
data
rather than numeric data.

You may also be able to overcome the issue by changing the way in which Word
connects to the datasource. That is done by checking the box for "Confirm
file format conversion on open" under Word OptionsAdvancedGeneral in Word
2007 or under ToolsOptionsGeneral in earlier versions. After you make
that change, when you attach the data source to the mail merge main
document, a dialog box will appear in which you can select the method by
which the attachment is made. Try the DDE option.

Another thing that should work is to specifically format the cells in that
column
in Excel as Text rather than having it formatted as General.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"MaxArk" wrote in message
...

I am merging data from an Excel database into a word document using the
mail merge feature.

I am merging a column of data with a header name of "unit$".
I have noticed that in most cases it merges data accurately, but with
some instances, where the datasource is text, like upper, east , west
etc, it will merge into the document as a 0 (zero).

When I look at the merge field in the merge document, it shows as
"unit", not "unit$". I cannot seem to place "unit$", as all my efforts
automatically revert to "unit"

Is this the cause of my inaccurately merged data? Are "$" not permitted
in merge fields?

Jenn




--
MaxArk


  #3  
Old April 12th, 2010, 01:39 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Some data Merging as Zero, not the text in the data

There's a fairly detailed page about the "0" problem at

http://tips.pjmsn.me.uk/t0005.htm

(although it is a bit out of date).

Although Doug has told you most of the useful workarounds, changing the
format of the cell may or may not be enough once data of the wrong
format has already been entered. In that case, the following may do the
trick:
- select the column
- select the Data|Text to Columns... menu option
- click Next through the wizard until you reach Step 3 of 3, then
select Text as the Column Data Format.

When I look at the merge field in the merge document, it shows as
"unit", not "unit$". I cannot seem to place "unit$", as all my efforts
automatically revert to "unit"

Is this the cause of my inaccurately merged data? Are "$" not permitted
in merge fields?


No - the problem is the one described by Doug. The other problem is that
Word will strip out $ from field names, hence "unit" instead of "unit$",
but it only renames the field - it doesn't ignore it altogether.

Peter Jamieson

http://tips.pjmsn.me.uk

On 12/04/2010 03:47, MaxArk wrote:
I am merging data from an Excel database into a word document using the
mail merge feature.

I am merging a column of data with a header name of "unit$".
I have noticed that in most cases it merges data accurately, but with
some instances, where the datasource is text, like upper, east , west
etc, it will merge into the document as a 0 (zero).

When I look at the merge field in the merge document, it shows as
"unit", not "unit$". I cannot seem to place "unit$", as all my efforts
automatically revert to "unit"

Is this the cause of my inaccurately merged data? Are "$" not permitted
in merge fields?

Jenn




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.