I have three files of which I need to generate 6 worksheet of a workbook from these 3 files. Each file contains multiple rows and multiple columns. Example
C1|C2|C3 A|1|Y B|1|Z C|2|Q
This is first file in which second field is Key. With this info, I need to generate 2 worksheets. First worksheet will contain the duplicate information i.e first 2 records (second column is duplicate i.e 1). Second worksheet contains unique key information i.e C|2|Q will go in second worksheet.

Similary three files will result into six worksheets and it should be part of same xls file.

Please suggest

In reply to Need Help in splitting the files by documents9900

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.