+ Reply to Thread
Results 1 to 5 of 5

Sort Data According to latest date and lowest balance. Excel 2007

  1. #1
    Registered User
    Join Date
    02-19-2012
    Location
    CA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Red face Sort Data According to latest date and lowest balance. Excel 2007

    Sample Data:

    ID # Date Balance
    3605944 2/15/2012 15:20 $1.19
    3605944 2/15/2012 15:20 $2.19
    3605944 2/15/2012 15:21 $3.19
    3605944 2/15/2012 15:21 $2.94
    3605944 2/15/2012 15:21 $2.69
    3605972 2/12/2012 9:05 $10.42
    3605972 2/13/2012 9:05 $9.42
    3605972 2/14/2012 9:05 $8.42
    3605981 2/14/2012 10:58 $1.07
    3605981 2/14/2012 10:58 $0.82
    3605981 2/14/2012 10:58 $0.57
    3605981 2/14/2012 10:59 $0.32
    3605981 2/14/2012 10:59 $0.07



    How do I format the data so that only the latest date is left over with it's respective (lowest) balance and card number.?
    So that I would end up with the data below.

    3605944 2/15/2012 15:21 $2.69
    3605972 2/14/2012 9:05 $8.42
    3605981 2/14/2012 10:59 $0.07
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sort Data According to latest date and lowest balance. Excel 2007

    Should the output be provided in the same sheet or different sheet?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Sort Data According to latest date and lowest balance. Excel 2007

    Hopefully this is what you're looking for

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sort Data According to latest date and lowest balance. Excel 2007

    Hello JieJenn,

    What an outstanding piece of work! I also had the problem solved, but my Macro takes very long to do what your one does in an instant.

    I was so impressed with what you have done, that I added a few changes to your Macro, which in my opinion makes your work just so much better!

    Please have a look at it (WorkBook attached), and let me know if you agree.

    I think that Bruce2000 will be blown away, and give you a good rep!!!
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Sort Data According to latest date and lowest balance. Excel 2007

    Hey Winon, yours looks good. Only thing I would do differently is instead of using sheet1 or sheet2, I would use worksheets("worksheet name") just so if a user add a new worksheet the macro will still use the correct worksheets for raw data.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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