+ Reply to Thread
Results 1 to 3 of 3

automatically sorting data from master list into separate worksheet

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    NYC, NY
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    2

    automatically sorting data from master list into separate worksheet

    Hi,

    I am wondering if there is a way to get my data from my master worksheet to automatically sort itself into other appropriate worksheets.

    For example, the first entry in the Master worksheet falls under the category of "Ecology" and "Physics" and thus I have marked an X in the columns "Ecology" and "Physics". In marking these columns with an "X" I would like this entry (Date, Event, and Source) to automatically appear in worksheets "Ecology" and "Physics".

    Hopefully that makes sense.

    If you don't mind explaining to me how you arrive at your solution, that would be appreciated. I'm new to this and would like to learn.
    Last edited by dicastri; 07-01-2011 at 11:21 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: automatically sorting data from master list into separate worksheet

    A macro is the easiest way to do this. This macro applies an AUTOFILTER to the Master sheet, it finds all the rows with an "x" in them in the column that matches the NAME of the sheet, then it copies all those matching rows to the sheet.

    This macro occurs automatically each time you view any sheet in the workbook. It triggers automatically on every sheet except the MASTER.
    Please Login or Register  to view this content.
    To insert this macro into your workbook:

    1) Press Alt-F11 to open the VBEditor
    2) On the left-hand project panel, locate the THISWORKBOOK module and double click it to open it
    3) Paste the code given above into the module window that opens
    4) Close the VBEditor, and save the workbook.

    Now just navigate your workbook... when you look at the PHYSICS sheet, the macro will bring all the physics data in fresh, each time.
    Attached Files Attached Files
    Last edited by JBeaucaire; 06-30-2011 at 10:17 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-30-2011
    Location
    NYC, NY
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    2

    Re: automatically sorting data from master list into separate worksheet

    Perfect! Thanks very much!

+ 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