+ Reply to Thread
Results 1 to 3 of 3

Separating a Worksheet into multiple worksheets based on column A field.

  1. #1
    Registered User
    Join Date
    01-27-2010
    Location
    Mound, Minnesota
    MS-Off Ver
    Excel 2003
    Posts
    1

    Separating a Worksheet into multiple worksheets based on column A field.

    Hopefully I can describe the macro I am trying to create, accruately. I have a report that dumps data into excel. The data becomes one long worksheet. I would like to design a macro that will divide the data into multiple worksheets. The data in column A is the determining factor as to which spreadsheet the row should go to. Any ideas? I am sure this will take additional explanation.

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Separating a Worksheet into multiple worksheets based on column A field.

    I created a macro that does a very similar thing for someone just the other day. You can find the link here. http://www.excelforum.com/excel-prog...ml#post2239357

    You may be able to change this to meet your needs. Otherwise post back if you need help.

    Matt

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Separating a Worksheet into multiple worksheets based on column A field.

    Hi,

    Treat the long worksheet as a database and ensure all the first rows of the columns have unique labels. Name the whole database including labels 'Data'

    Now on the various analysis sheets put the column labels (say row 4) that you want to use and name this single row range of labels MySheet!DataOut where 'MySheet' is the name of the sheet.

    Now above these column labels create a criteria range which contains the column label of column A of the database in one cell and the value that you want to extract in the cell underneath. Let's assume this criteria range is in A1:A2. Name this range MySheet!ExtCrit

    Now add the following macro.

    Please Login or Register  to view this content.
    Put a button on each sheet and link it to the FilterData macro.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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