+ Reply to Thread
Results 1 to 9 of 9

Macro to Sort earliest shift to latest shift

  1. #1
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Macro to Sort earliest shift to latest shift

    Anyone knows a macro that can sort earliest shift to latest shift?

    I really need one

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro to Sort earliest shift to latest shift

    You can try recording a macro to do exactly what you need to start off.

    Otherwise you will need to post a sample dataset and clear instructions as to what you want. A before and After would be ideal.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Re: Macro to Sort earliest shift to latest shift

    I've attached the sheet with a comment box describing what i need.

    Is there also a macro that can pull the data from the punch data workbook to filled the columns with the specific headings highlight in blue?.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Re: Macro to Sort earliest shift to latest shift

    I've attached the after and before sheets with a brief description in the after macro tab.

    really need your help.
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to Sort earliest shift to latest shift

    Hi Shelly

    You'll need a Custom Sort for this. You'll need to show me how you got from there to here. You'll need to show me ALL your available Shift Hours and how you wish them sorted.

    Then, you'll need to tell me if the Code in this Thread worked for you or not.
    http://www.excelforum.com/excel-prog...cel-sheet.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Macro to Sort earliest shift to latest shift

    Should be able to work with the below... it creates a custom sort with the times you said you needed to sort by... I am not sure what you are wanting in the other two files.. if you can explain more I will help you out


    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Re: Macro to Sort earliest shift to latest shift

    thanks guys much appreciated. thanks a million

  8. #8
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Macro to Sort earliest shift to latest shift

    Did you get it the way you wanted???

  9. #9
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Re: Macro to Sort earliest shift to latest shift

    Yep its all good thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Caculating # of Day Shift Hrs & Night Shift Hrs of a Given Shift
    By DaKhoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2014, 08:36 PM
  2. [SOLVED] If criteria met: delete cell and shift to the left but shift only over a certain range
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 07:44 AM
  3. Need Help on Time Sheet Formula (Day Shift OK/Night Shift=Problem)
    By jomapac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 02:26 AM
  4. Replies: 4
    Last Post: 02-06-2013, 04:21 AM
  5. Replies: 4
    Last Post: 12-06-2012, 08:29 PM

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