+ Reply to Thread
Results 1 to 6 of 6

Auto data separation

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Auto data separation

    I have a dump of 2,000 lines (running in Excel 2003) which have a column of account codes (around 100), a column of invoice numbers, and a column of values.

    I want to be able to split the dump into the account codes, one per sheet. I've tried to do it with formula but failed, tried with code but failed (but as I am the worst writer of VBA in the world that wasn't suprising). Can anyone suggest the approach I should take.

    A sample spreadsheet is attached.

    thanks for any ideas
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    A PivotTable would be much better than splitting data into 100 sheets.
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807
    The problem with the pivot table (which I never even considered) is that I need the account users to be able to access the file and copy and paste their accounts to other applications. Is it possible to copy and paste from a pivot table?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It depends what you want to copy, there is also a drill down feature in a PivotTable.

    I certainly would explore any option that doesn't need to generate 100 sheets which would end up with a difficult workbook to manage. I have posted several code examples to do this.

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807
    Hi Roy

    Thanks for your suggestions. I'm still trying to get it to work with the individual sheets - I will probably need to be able to read out of the workbook from other workbooks. I can do it all via a horrible macro using <sort>, etc. but it's not pretty....

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There is sample code to create individual sheets here

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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