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  

Mail Merge Help Please



 
 
Thread Tools Display Modes
  #1  
Old June 28th, 2009, 06:35 PM posted to microsoft.public.word.mailmerge.fields
Yookaroo
external usenet poster
 
Posts: 17
Default Mail Merge Help Please

2) how can I add a soft return after a field but only if it exists, so there
is no space if there is no data in the field

3) as I have 16,000 records in 4 databases this is a big one for me, I have
41 columns and 41 products (Each product isnt named, its represented by a
number, but they dont always have product one in column 1, product 2 in
column 2... Some have product 6 in column 2 and product 7 in column 3 there
are a ton of different formats. Some people get all 41 some people get less.
So can I :

a) is there a way to format the excel file that will move the 2's under the
2 column, the 3's under the 3 column etc...?

b) Is there a way to tell mail merge that when it encounters a 1 in a field
to post product name 1, if it finds 2 post product name 2 etc...
  #2  
Old June 28th, 2009, 10:18 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Mail Merge Help Please

Not sure what happened to your first question, but for the second one, use
an If...then...Else field construction

{ IF { MERGEFIELD "nameoffieldthatmightbeempty" } ="" "{ MERGEFIELD
"nextmergefield" }" "{ MERGEFIELD "nameoffieldthatmightbeempty" }¶
{ MERGEFIELD "nextmergefield" }" }

where the ¶ appears in the above construction, press the Enter key. You
must use Ctrl+F9 to insert each pair of the field delimiters { } and use
Alt+F9 to toggle off their display.

For your second (sorry third) question, while you may be able to set up a
new sheet in Excel that references the data in the existing sheet, using a
Function to move things over, a low tech way of doing it would be to sort
the data by as many fields as your version of Excel will allow (that is by
the second, then the third, then the fourth, etc) then select and delete
each of the empty blocks of cells, moving the data to the left.

--
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
"Yookaroo" wrote in message
...
2) how can I add a soft return after a field but only if it exists, so
there
is no space if there is no data in the field

3) as I have 16,000 records in 4 databases this is a big one for me, I
have
41 columns and 41 products (Each product isnt named, its represented by a
number, but they dont always have product one in column 1, product 2 in
column 2... Some have product 6 in column 2 and product 7 in column 3
there
are a ton of different formats. Some people get all 41 some people get
less.
So can I :

a) is there a way to format the excel file that will move the 2's under
the
2 column, the 3's under the 3 column etc...?

b) Is there a way to tell mail merge that when it encounters a 1 in a
field
to post product name 1, if it finds 2 post product name 2 etc...


  #3  
Old June 28th, 2009, 10:36 PM posted to microsoft.public.word.mailmerge.fields
Yookaroo
external usenet poster
 
Posts: 17
Default Mail Merge Help Please

Not sure what happened to my first question either.. Heck I cant even
remember what it was.

Anyways this is a big help, where you say nextmergefield, do I put the name
of the next field in or just leave it as is?

As for the find replace I spent the last couple of hours find replacing into
the excel file which is now huge but working.

Thanks again

"Doug Robbins - Word MVP" wrote:

Not sure what happened to your first question, but for the second one, use
an If...then...Else field construction

{ IF { MERGEFIELD "nameoffieldthatmightbeempty" } ="" "{ MERGEFIELD
"nextmergefield" }" "{ MERGEFIELD "nameoffieldthatmightbeempty" }¶
{ MERGEFIELD "nextmergefield" }" }

where the ¶ appears in the above construction, press the Enter key. You
must use Ctrl+F9 to insert each pair of the field delimiters { } and use
Alt+F9 to toggle off their display.

For your second (sorry third) question, while you may be able to set up a
new sheet in Excel that references the data in the existing sheet, using a
Function to move things over, a low tech way of doing it would be to sort
the data by as many fields as your version of Excel will allow (that is by
the second, then the third, then the fourth, etc) then select and delete
each of the empty blocks of cells, moving the data to the left.


  #4  
Old June 29th, 2009, 03:34 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Mail Merge Help Please

Where I used the { MERGEFIELD nextmergefield } you need to use the actual
next merge field.

--
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
"Yookaroo" wrote in message
...
Not sure what happened to my first question either.. Heck I cant even
remember what it was.

Anyways this is a big help, where you say nextmergefield, do I put the
name
of the next field in or just leave it as is?

As for the find replace I spent the last couple of hours find replacing
into
the excel file which is now huge but working.

Thanks again

"Doug Robbins - Word MVP" wrote:

Not sure what happened to your first question, but for the second one,
use
an If...then...Else field construction

{ IF { MERGEFIELD "nameoffieldthatmightbeempty" } ="" "{ MERGEFIELD
"nextmergefield" }" "{ MERGEFIELD "nameoffieldthatmightbeempty" }¶
{ MERGEFIELD "nextmergefield" }" }

where the ¶ appears in the above construction, press the Enter key. You
must use Ctrl+F9 to insert each pair of the field delimiters { } and use
Alt+F9 to toggle off their display.

For your second (sorry third) question, while you may be able to set up a
new sheet in Excel that references the data in the existing sheet, using
a
Function to move things over, a low tech way of doing it would be to sort
the data by as many fields as your version of Excel will allow (that is
by
the second, then the third, then the fourth, etc) then select and delete
each of the empty blocks of cells, moving the data to the left.



 




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 09:53 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.