+ Reply to Thread
Results 1 to 7 of 7

Batch Edit Cells

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    36

    Batch Edit Cells

    I have about 11,000 cells that contain plain text dates that will not sort properly. The date is entered like so: "01-31-2017 3:00 AM EST"

    When I try to sort, Excel only sorts the empty cells to the bottom and doesn't organize the cells by date. Any ideas on how to either sort these cells as is or mass edit them somehow to make them sortable? I uploaded a sample workbook.Test.xlsx

    Thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Batch Edit Cells

    You need to convert them to the real dates. Use this formula in B2 and copy down then format as Date.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Correction. Didn't notice that there are "EDT"

    Use this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 12-01-2015 at 10:06 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Batch Edit Cells

    Hello,

    Excel regards this data as text, not as dates. You need to convert it to real date/time values.

    If you have data to the right of that column, insert two empty columns. Then select the column, then click Data > Text to columns

    - tick "Fixed width" > Next
    - double click the arrow line between the time and the PM to remove it and click Next
    - with the first column highlighted, select the Date format option and the MDY order from the dropdown.
    - click Finish

    Now you have three columns. You can now create a formula to add the date and time columns to arrive at a single date/time value for each row.

    =a2+b2

    Format this column to show date and time. It can now be sorted by date.

    cheers, teylyn

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Batch Edit Cells

    Al, that only works with specific regional settings. If the computer is set to DMY (like mine) it fails.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Batch Edit Cells

    Another quick option that will only work if the dates have the same format as the regional settings: Find and Replace.

    - hit Ctrl-H
    - in Find What enter a space and the EST
    - leave Replace with blank
    - click Replace All.

    Do the same for EDT and any other time zone markings you have.

  6. #6
    Registered User
    Join Date
    06-26-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Batch Edit Cells

    Quote Originally Posted by AlKey View Post
    You need to convert them to the real dates. Use this formula in B2 and copy down then format as Date.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Correction. Didn't notice that there are "EDT"

    Use this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Your second suggestion worked perfectly. Can you explain what this formula is doing so that I better understand for future uses, please?

    Thanks!

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Batch Edit Cells

    The RIGHT(A2,4) part will remove the last 4 characters " EST" and " EDT" to allow conversion from text to numeric values.

+ 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. Replies: 29
    Last Post: 05-07-2019, 10:24 PM
  2. batch edit cell formulas
    By thdsn17 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2015, 10:06 PM
  3. Batch Copy Certain Cells From Several Workbooks
    By exarranum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2013, 05:12 AM
  4. [SOLVED] Selecting a batch of cells
    By NathanC in forum Excel General
    Replies: 10
    Last Post: 09-11-2012, 10:59 AM
  5. [SOLVED] Formula to round down on a batch and exclude anything under a full batch
    By toomuchbrew in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2012, 11:04 AM
  6. Replies: 0
    Last Post: 06-19-2012, 11:36 AM
  7. Batch replace cells in whole sheet
    By sino in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-27-2010, 09:42 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