MailMerge Directory - Split one Excel Data column into three Seperate columns in Word MailMerge

This seems like something so simple to accomplish but I am having extreme issues just getting this correct.
Here is what my Data looks like
Name                      ClassID
Jeff Probst                Intro
Kevin Douglas           Intro
Jen Taylor                Intro
Master Chief             Intro
I want these to print out in three separate columns (Static) with dynamic rows with how many names are in the data
Example:
Jeff Probst                     Kevin Douglas                   
Jen Taylor
Master Chief                  Next Name
I have tried to use Many to One, but I cannot get it to work correctly. I have tried setting it up as a directory and using If statements, but I cannot get them to print correctly or in column order before moving on to the next record.
Thank you for your help in advanced.

You can use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial at:
http://windowssecrets.com/forums/showthread.php/154370-Microsoft-Word-Catalogue-Directory-Mailmerge-Tutorial
or:
http://www.gmayor.com/Zips/Catalogue%20Mailmerge.zip
The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it.
For some worked examples, see the attachments to the posts at:
http://www.msofficeforums.com/mail-merge/9180-mail-merge-duplicate-names-but-different-dollar.html#post23345
http://www.msofficeforums.com/mail-merge/11436-access-word-creating-list-multiple-records.html#post30327
and especially:
http://windowssecrets.com/forums/showthread.php/157725-Word-2010-Merge-from-excel-into-Table-Directory?p=928391&viewfull=1#post928391
Cheers
Paul Edstein
[MS MVP - Word]

Similar Messages

  • Excel data transfer into SAP internal table with GUI_UPLOAD

    hi all,
      i m using SRM4 system and i wanted to develop one report which will upload data from excel and convert it into IT.
    i know that many threads are posted on this topic.
    but my requirement is slight different. in the system only one function module is available that is "GUI_UPLOAD" and we want that user shd not save file as tab delimited before calling this fm. instead, program shd take care of all these things...
    please suggest something asap..
    helpful ans will be rewarded..
    thanks,
    jigs.

    Dear Jigs,
    Please go though the following lines of code:
    D A T A D E C L A R A T I O N *
    TABLES: ANEP,
    BKPF.
    TYPES: BEGIN OF TY_TABDATA,
    MANDT LIKE SY-MANDT, " Client
    ZSLNUM LIKE ZSHIFTDEPN-ZSLNUM, " Serial Number
    ZASSET LIKE ZSHIFTDEPN-ZASSET, " Original asset that was transferred
    ZYEAR LIKE ZSHIFTDEPN-ZYEAR, " Fiscal Year
    ZPERIOD LIKE ZSHIFTDEPN-ZPERIOD, " Fiscal Period
    ZSHIFT1 LIKE ZSHIFTDEPN-ZSHIFT1, " Shift No. 1
    ZSHIFT2 LIKE ZSHIFTDEPN-ZSHIFT1, " Shift No. 2
    ZSHIFT3 LIKE ZSHIFTDEPN-ZSHIFT1, " Shift No. 3
    END OF TY_TABDATA.
    Declaration of the Internal Table with Header Line comprising of the uploaded data.
    DATA: BEGIN OF IT_FILE_UPLOAD OCCURS 0.
    INCLUDE STRUCTURE ALSMEX_TABLINE. " Rows for Table with Excel Data
    DATA: END OF IT_FILE_UPLOAD.
    S E L E C T I O N - S C R E E N *
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME,
    BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: P_FNAME LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN: END OF BLOCK B2,
    END OF BLOCK B1.
    E V E N T : AT S E L E C T I O N - S C R E E N *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
    PROGRAM_NAME = SYST-REPID
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = ' '
    STATIC = 'X'
    MASK = '.'
    CHANGING
    FILE_NAME = P_FNAME
    EXCEPTIONS
    MASK_TOO_LONG = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Upload Excel file into Internal Table.
    PERFORM UPLOAD_EXCEL_FILE.
    Organize the uploaded data into another Internal Table.
    PERFORM ORGANIZE_UPLOADED_DATA.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    *& Form UPLOAD_EXCEL_FILE
    text
    --> p1 text
    <-- p2 text
    FORM UPLOAD_EXCEL_FILE .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    FILENAME = P_FNAME
    I_BEGIN_COL = 1
    I_BEGIN_ROW = 3
    I_END_COL = 7
    I_END_ROW = 32000
    TABLES
    INTERN = IT_FILE_UPLOAD
    EXCEPTIONS
    INCONSISTENT_PARAMETERS = 1
    UPLOAD_OLE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " UPLOAD_EXCEL_FILE
    *& Form ORGANIZE_UPLOADED_DATA
    text
    --> p1 text
    <-- p2 text
    FORM ORGANIZE_UPLOADED_DATA .
    SORT IT_FILE_UPLOAD BY ROW
    COL.
    LOOP AT IT_FILE_UPLOAD.
    CASE IT_FILE_UPLOAD-COL.
    WHEN 1.
    WA_TABDATA-ZSLNUM = IT_FILE_UPLOAD-VALUE.
    WHEN 2.
    WA_TABDATA-ZASSET = IT_FILE_UPLOAD-VALUE.
    WHEN 3.
    WA_TABDATA-ZYEAR = IT_FILE_UPLOAD-VALUE.
    WHEN 4.
    WA_TABDATA-ZPERIOD = IT_FILE_UPLOAD-VALUE.
    WHEN 5.
    WA_TABDATA-ZSHIFT1 = IT_FILE_UPLOAD-VALUE.
    WHEN 6.
    WA_TABDATA-ZSHIFT2 = IT_FILE_UPLOAD-VALUE.
    WHEN 7.
    WA_TABDATA-ZSHIFT3 = IT_FILE_UPLOAD-VALUE.
    ENDCASE.
    AT END OF ROW.
    WA_TABDATA-MANDT = SY-MANDT.
    APPEND WA_TABDATA TO IT_TABDATA.
    CLEAR: WA_TABDATA.
    ENDAT.
    ENDLOOP.
    ENDFORM. " ORGANIZE_UPLOADED_DATA
    In the subroutine --> ORGANIZE_UPLOADED_DATA, data are organized as per the structure declared above.
    Regards,
    Abir
    Don't forget to award points *

  • Alv output download to excel sheet spliting into three line

    hi,
    i have developed alv report with 62 fields (62 colums).when i download this output into excel sheet each line spliting into three line.each field has 20 char length.i want download each row as single line.
    i am using local file  (ctrl + shift+F9) -> spreadsheet option
    please advice me to solve this issue. i am using fm REUSE_ALV_GRID_DISPLAY.
    In layout i am using
      DATA:   min_linesize like sy-linsz,   " if initial min_linesize = 80
              max_linesize like sy-linsz.   " Default 250
      min_linesize = 100.
      max_linesize = 1000.
      gt_layout-zebra             = 'X'. "space.
      gt_layout-colwidth_optimize = space.
      gt_layout-max_linesize = min_linesize.
      gt_layout-max_linesize = max_linesize.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
           i_bypassing_buffer = ' '
           i_callback_program       = sy-repid
           i_callback_pf_status_set = 'SET-PF-STATUS'
           i_callback_user_command  = 'USER_COMMAND'
           it_fieldcat              = gt_fieldcat[]
           it_events                = gt_events[]
           is_layout                = gt_layout
          is_variant               = v_stru_disvar
          i_default                = 'X'
          i_save                   = 'A'
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
         TABLES
           t_outtab                          = it_final[]
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2
    Edited by: Raja Ram on Aug 4, 2009 12:40 PM

    solved

  • Create two or more flash files from one (Excel) data source

    Hi experts,
    I have the following requirement about Xcelsius.
    Our data source is a relational database. Via the ODBC driver we manage to create several queries and execute them into Microsoft Excel. Those excel sheets are the basic for the Xcelsius reports.
    Now we want to build some highly visualized reports on that, but the crucial fact is. We don't want to have all the reports in one FlashFile, but we need several flash file depending on the area of the queries.
    Hence our requirement would be one of the following points:
    - create multiple flash files from one .xlf
    - create multiple .xlf from data source
    Another requirement is the automatic execution of the process. We don't want to have a person in between, who has to call all the .xlf files to create the Flash reports step by step. What we need is an automatic process.
    Can this requirement be fulfilled in a way?
    Maybe by using the Xcelsius SDK?
    Thanks for any helps and comments!
    Sebastian

    Sebastian,
    Firstly talking about the important requirement i.e. automating the process:
    In your case you can achieve this by using the XML maps. This will pick the data automatically when ever report is refreshed.
    Secondly, both the approaches are correct, however i would go with the first one.
    1. Create multiple flash files from one .xlf
         You just need to create one dashboard and have a filter on areas (Invisible) and then export to flash (for every area).    
    2. Create multiple .xlf from data source
         This approach is also fine, however you need to create multiple dashboards and do the same thing i.e filter data based on area.
    P.S. Did you get a chance to explore options to integrate Xcelsius with your Relational Database, this will be much effective.
    -Anil

  • How do i import excel data base into pdf form drop down field

    Hi,
    I have a table of about 2500 rows and three columns that i would like to import into a drop down window on a PDF form to be self populated when item selected rather than entering the data. How can this be done?
    Thanks!
    Richard

    Hi,
    I did not know only two entries for each option item is it. I have manually entered data in the drop down an list boxes. With 2500 lines of data I was hoping there was an easier way other than manually entering the data.
    I have no knowledge of Java Scripting.....
    I was just wondering if there was a way from an Excel spreadsheet to import that data into a PDF form to be selectable to populate PDF fields in a form. It doesn't sound like it.
    Thanks......

  • How to split one big master clip into many?

    Hi,
    This is probably a simple question for you pros. Thank you for reading.
    I have film that I've telecined onto a DV. However, FCP imported a one hour tape as one big master clip. Is there a way I can split this master clip into several small clips so I can organize my project?
    Does that make sense?
    Thank you in advance,
    Nik

    Since you telecined onto DV I guess there are no Date&Time gaps between scenes, so you cannot use DV Start/Stop Detect. Then the only way I can think of is to do it manually: open the clip in the viewer, select the first scene by setting its IN and OUT points, edit to the timeline, back to the viewer select the next scene setting a new pair of IN and OUT points, edit to the timeline, etc.
    If you prefer you can move each new clip to the browser, and collect them together into a bin, before editing them to the timeline.
    Piero

  • Splitting up a date field into two fields on display

    I have a form that is based on a table which contains two date fields. To populate these date fields I have one date picker using a format of DD-MON-YYYY and two "time" fields that are just based on static LOV select lists. I build the date by piecing together these fields to get my two different dates and save it to the database just fine (using a process on submit, before validation).
    My problem comes when I want to edit the existing records. I am unable to figure out how to populate those fields from the dates. I thought I could do it during the page reduring process but everything I try gives me a format error. I can assign the date to the date picker field no problem but cannot get it to display without the date format, regardless of setting the format or not on the item. I can't get the time off into my time fields at all.
    An example of setting my start time field (select list of times only)
    BEGIN
    :P10_START_TIME := TO_CHAR(:P10_DTE_START,'HH24:MI');
    END;
    Error I get is ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    I've tried a few different formats and I think I am just missing something really easy. My static pick list in this case is just the display would be say 1:00 PM but the other value is 13:00.
    The other one I am trying is for the actual date picker itself.
    BEGIN
    :P10_COURSE_DATE := TO_DATE(:P10_DTE_START, 'DD-MON-YYYY');
    END;
    Gives me ORA-01830: date format picture ends before converting entire input string.
    The format of :P10_DTE_START is DD-MON-YYYY HH24:MI (it is a hidden field) and :P10_COURSE_DATE is DD-MON-YYYY.
    Colour me confused...

    Thanks for the reply...I got this error for the last name piece "A subscript must be between 1 and the size of the array.
    ". I was able to put in
    split({Usr.Nam}, " ")[-1]
    and that seemed to pull  the last name piece of the field.
    Thanks Again,
    Reid

  • Trying to split one large audio file into tracks

    Hi;
    Awhile ago I mistakenly imported a CD into iTunes, as one large audio file, containing all 10 tracks. Now I'd like to know how to split this file back into it's separate tracks, and re-import into iTunes.
    Any thoughts?
    TIA.

    MP3 editor is a lossless editor for MP3 files.
    -> Fission, will do lossles editing of AIFF, WAV, MP3, AAc and Apple Lossless.
    You can do it yourself but the songs will be re-encoded (not lossless) but may not be a big deal.
    On the song, right click - get info. Click the Options tab and set the Start-Stop times for the first song.
    Then select the song, menu Advanced - Create AAC version {or whatever is selected in iTunes prefs -General - Importing}.
    This will create a new copy of the song between the time markers. Select the new song, righ click - get info and update the song title.
    Then on the original song, set Start-Stop times for the second song and menu Advanced - Create AAC version the for the 2nd song.
    Do this for all the songs in the original file.

  • One excel page turns into 2 pdf pages?

    Does anyone know what needs to be done to an excel sheet so when I convert it to pdf it stays as one page in the pdf format?

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Split one sales order line into multiple item line on invoice

    Hi,
    When create proforma invoice from sales order (TCode, VF01), we can have multiple batches for on sales order item line. On invoice, we have requirement to make each batch become a single invoice line. Any help on how to do the split?
    Thanks.
    --Wenning

    Are you talking about a report to show all the line items of the order. MAy be I didnt understand you correctly.
    The key to both the tables is VBELN.
    However for any Invoice the line item in in VBRP tbable and the corresponding Header in VBRK.
    You could write to query to combine the lines in VBRP to one line based on your requirement.
    Shreekant

  • How can I divide one big long track into several smaller ones?

    I have many mp3"s I imported or downloaded in my Library of lectures, sermons and speeches.
    How can I divide one big long track into several smaller ones?
    Any input would be great.

    lakergrl wrote:
    How do I split one very long track into several tracks (audio journal split into each day)
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportsections
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Does Data Integrator work fine with excel data sources?

    Post Author: sasidhar
    CA Forum: Data Integration
    Hi,
           We are pulling 10 different excel data sheets into a Oracle database, is anybody aware of any issues migrating that data using BODI?
    Thanks,
    Sasi.

    Post Author: msavage
    CA Forum: Data Integration
    No it works great.  It used to be kind of crappy because you had to go through an ODBC connection to do it.  However in the last major version upgrade XIR2 they added it as an actual object in the Formats tab next to the Data Sources tab.  This makes it a lot easier as you can just drag the object into your data flow, enter in the appropriate information and you are good to go.

  • How do I chop my iMovie into three separate parts?

    How do I chop my iMovie into three parts?

    To split a fully edited movie into three parts -
    While in Project Library view (where all your projects are listed), right-click or Control-click on your project. From the pop-up menu, select Duplicate Project. Do this 3 times so that you have 4 identical projects - the original (for safe-keeping) plus 3 copies.
    If desired, rename each of the duplicates, such as My Movie Pt 1, My Movie Pt 2 and My Movie Pt 3 (or whatever you like). Even without renaming, iMovie will ascribe a number to each duplicate, while including the name of the original movie.
    Now delete sections from each duplicate so that you end up with 3 separate movies, each with their own content.
    Note that duplicating projects doesn't take up much extra drive space. Projects simply reference (point to) the actual video clips in the associated Event (as well as keeping track of any added transitions, titles, music, effects and so forth).
    John

  • When I import a text file(comma separated )into a numbers spread sheet all the data goes into one column. Why does the text not go into separate columns based on the commas.

    When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators.  Excel allows you to do this during the import..  Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.

    Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
    (I don't have an iPad, so I don't know the iOS answer.)

  • Splitting one column into 4 columns

    Hi,
      I want to split one column into 4 columns as shown below.
    parameters
    PanelPanel=MP01110201&YearYear=2013&Source=1&UserID=aad2779
    PanelPanel=MP12100173&YearYear=2013&Source=1&UserID=aac6440
    it should be display as 
    panel                      yearyear                source              userid
    MP01110201           2013                            1                    aad2779
    MP12100173           2013                            1                    aac6440
    there will be thousands of rows in the column. Can anybody help how to split it as shown.The length may very from row to row
    Thanks for your help.........
    BALUSUSRIHARSHA

    It is working...thank u very much... I found one more issue here
    PanelPanel=MP01110201&YearYear=2013&Source=1&UserID=aad2779
    PanelPanel=MP11100070&Source=1&PNR=2&YearYear=2014&UserID=ddc1535
    PanelPanel=MP11101276&Source=1&YearYear=2014&PNR=2&UserID=ddc1565
    I found 3 kinds of formats in the same column... I didn't observe the data carefully while posting the
    question..sorry about that. In this case if we need to show as
    panel                      yearyear                source
                 userid
    MP01110201           2013                            1                    aad2779
    MP11100070           2014                           1                    ddc1535
    MP11101276           2014                
              1                    ddc1565
    is it possible to filter like this? Should we use any case statement in query while we have diff formats
    like this?
    BALUSUSRIHARSHA

Maybe you are looking for

  • How do I keep an application window hidden when not accessed?

    I have an application running constantly to control my FW audio interface outputs etc. I use system events applescripts to control it's UI with a USB controller (PowerMate) - and that by necessity brings the application window to the front every time

  • JDBC Lookup in PI 7.1 - SELECT ? FROM DUAL and Connection timed out

    Hi, We have a scenarios (Idoc to JMS) with JDBC lookup. We have used graphical JDBC lookup functionality. We are reading country names for a given country code from SAP in an external database table. The query is so simple. That  should not take much

  • Problem with Snow Leopard and imovie

    After spending hours putting together a movie in imovie, I cannot share it to media browser nor any of the other options listed under the "share" button. All the titles and transitions play in the project window, but will not play full screen. Any su

  • TS3274 My screen has stopped rotating...how do I fix this?

    My screen has stopped rotating when Inchance the angle...how do I fix this?

  • After update to Safari 5.1 No cursor in Fishville

    I have cursor issues While playing the Fishville game on Facebook or Yahoo. Once the game loads my cursor disappears. I thinks its a browser issue but not sure how to resolve it. I tried the game in both Firefox and Opera and the cursor works fine. I