Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / September 2006

Tip: Looking for answers? Try searching our database.

Excel to Word Merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Viall - 26 Sep 2006 04:17 GMT
Without writing a VB script, is there a way to do a conditional merge on data
setup in a table like the following:

Name          Session     Type
Jane Doe     Morning     Absent
Jane Doe     Morning     Consecutive Absence
Jane Doe     Morning     Failure
John Doe     Morning     Absent

The data will always, or can be always, sorted in this fashion.  Using the
Skip Record If, I can set it up so that I can eliminate records based on
Session and Type.  But is there a way where I can skip a record based on a
previous records data, Name?

For instance, with the data above, I have one letter that goes out for
Failure, and another letter for Absent and Consecutive.  If I use the built
in functions, I will get two letters for Jane Doe, one for Absent, another
for Consecutive Absence.  I only need one.

The original table needs to remain intact, so removing the duplicate from
the source really isn't an option.

Thanks in advance.
John Viall
Graham Mayor - 26 Sep 2006 09:49 GMT
A simple method would be to add a column to the data sheet 'Letter' to
derive the required letter type eg

=IF(A3 <> A2,C2,"") in D3 (drag down to fill the rest) will pick the last
one in the list

Name      Session  Type                                   Letter
Jane Doe Morning  Absent
Jane Doe Morning  Consecutive Absence
Jane Doe Morning  Failure                               Failure
John Doe Morning  Absent                               Absent

Then SkipIf when that field is empty.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Without writing a VB script, is there a way to do a conditional merge
> on data setup in a table like the following:
[quoted text clipped - 20 lines]
> Thanks in advance.
> John Viall
John Viall - 26 Sep 2006 21:03 GMT
Thanks, sometimes the simplest solutions are the ones we don't think about.

John

> A simple method would be to add a column to the data sheet 'Letter' to
> derive the required letter type eg
[quoted text clipped - 34 lines]
> > Thanks in advance.
> > John Viall
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.