+ Reply to Thread
Results 1 to 4 of 4

VBA for arranging date and time in Ascending order

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    35

    VBA for arranging date and time in Ascending order

    HI all,

    I am new to VBA. Please look at below data.

    A column B column
    27-Sep-13 18:26:18
    27-Sep-13 18:28:52
    27-Sep-13 18:34:09
    27-Sep-13 18:49:19
    27-Sep-13 21:52:01
    27-Sep-13 20:09:12
    27-Sep-13 18:54:09
    27-Sep-13 19:46:01
    27-Sep-13 20:21:48

    I need VBA to mix both in Column C and arrange them in ascending order.
    Any suggestions please?

    thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA for arranging date and time in Ascending order

    why use VBA for that?

    use the built in formula (solution) in excel for sort for this kind of work.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA for arranging date and time in Ascending order

    If you really need VBA, just record yourself sorting it
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  4. #4
    Registered User
    Join Date
    06-18-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    35

    Re: VBA for arranging date and time in Ascending order

    Thanks all. It worked as per your guidance.

+ 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. Arranging two different columns in same order
    By TrevorMalcolm in forum Excel General
    Replies: 1
    Last Post: 04-24-2014, 06:22 AM
  2. Date sort in ascending order not working
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2014, 11:06 PM
  3. [SOLVED] Generate "ascending order no" for columns of data that are not in order
    By abreichenbach in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-20-2013, 02:22 AM
  4. ReOrder Rows in ascending/descending order based on date
    By kurb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2012, 05:42 PM
  5. Replies: 1
    Last Post: 03-24-2010, 09:44 AM

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