+ Reply to Thread
Results 1 to 2 of 2

Macro to Sort Based on order of a different sheet

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    30

    Macro to Sort Based on order of a different sheet

    I have two workbooks that i need to have the order of the rows match. The first workbook is a log book that is typed in by staff. Each row is a new patient visit. The second workbook is a file that is generated from a program that is sorted by just the date; so the actual order of the patients is wrong. I need the second file to be in the same order that the log book is. The log book has a "visit number" for each patient. I tried doing a vlookup to pull the visit number for each patient and sorting it that way, but some patients have more than one visit in the month. I need this to be as simple as possible and they need to stay as two separate workbooks. If there is a better way to do it rather than using a macro, I am open to that as well.

    Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro to Sort Based on order of a different sheet

    Post a sanitized workbook with an example.
    Entia non sunt multiplicanda sine necessitate

+ 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