+ Reply to Thread
Results 1 to 4 of 4

Sort and format help.

  1. #1
    Registered User
    Join Date
    04-01-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sort and format help.

    I'm no expert but can read code.

    I have a xlsm sheet with multiple worksheets in. I can write out the multiple worksheets as a single CSV file but I need to do a little more and have no idea where to start. Can anyone help me?

    Simply put, I need to take multiple work sheets, output them as a CSV. Each line is of the format (see below, simplified):

    OR

    I have multiple worksheets of the format (see below) and need to manipulate them into a single CSV file.

    The order that this happens in is not important except from a coding perspective. Ideally it would go from a multi-worksheet xlsm to a CSV.

    -----xslm file format across multiple worksheets --------
    1234,5678,9101,2345,abcde,101
    6789,,,,fghijkl,102
    1012,3456,,,mnopqr,103

    and make that into a CSV.

    1234,abcde,101
    5678,abcde,101
    9101,abcde,101
    2345,abcde,101
    6789,fghijkl,102
    1012,mnopqr,103
    3456,mnopqr,103

    all help greatly appreciated.

    etc.etc.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Sort and format help.

    Is each worksheet named 1234,5678,9101,2345,abcde,101, etc?

  3. #3
    Registered User
    Join Date
    04-01-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sort and format help.

    hi,

    the above is the contents of 1 work sheet. there are 10 worksheets in the workbook all are the same content layout.

    Its essentially a stock sheet. But one item description (abcde) can correspond to several part numbers (1234,5678..).

    the columns would have descriptive headers.

    part no.1,part no.2,part no.3,part no.4,Description,Quantity
    1234,5678,9101,2345,abcde,101

  4. #4
    Registered User
    Join Date
    04-01-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sort and format help.

    the worksheets themselves are named "parts","servers","opticals","hard-drives","CPU","CPU-kits",......

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1