+ Reply to Thread
Results 1 to 9 of 9

Formatting data does not seem to work ..

Hybrid View

  1. #1
    Registered User
    Join Date
    05-29-2017
    Location
    Prague, Czech Republic
    MS-Off Ver
    10
    Posts
    13

    Formatting data does not seem to work ..

    Hello,

    I have column with this date format 2016-05-30 15:44:33
    and I need to have this format: mmm-yy, so I think I should get something like this from original May-16

    I did this:
    Select the cells you want to format.
    Press CTRL+1.
    Right clicked
    In the Format Cells box, click the Number tab
    But when I either went to Date or Custom category and tried to browse the options - it never showed me the changed Sample above. In fact Sample stayed the same as in original cell, so did the cell after clicking on OK.

    Where is the problem?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formatting data does not seem to work ..

    You've your original data as *text, so you can do (I assume your data start in A1) in B1: =A1*1, than change cell format to mmm-yy or any other if you want

    * - aligned to the left in cell

    or

    select entire column with your data
    from the ribbon DATA >>> Text to columns and from new window: Finish.
    Adjust format if necessary
    Last edited by sandy666; 05-29-2017 at 02:01 PM.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formatting data does not seem to work ..

    Agree your data is probably text - test with =ISNUMBER(cell-ref) FALSE indicates text and it will need to be converted.

    Another way to convert would be to highlight the entire range (not 100% sure this will work with time included, but worth a shot),
    go to text2Columns
    click Next/Next
    click Date
    select MDY
    Finish

    Then try your formatting again
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formatting data does not seem to work ..

    @Ford
    I added the same in shorter version in the same time as you

  5. #5
    Registered User
    Join Date
    05-29-2017
    Location
    Prague, Czech Republic
    MS-Off Ver
    10
    Posts
    13

    Re: Formatting data does not seem to work ..

    That is really something, it really works. But I would never guess that date is text and that = A1*1 converts it into date format.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formatting data does not seem to work ..

    @ Sandy, yup that is a very handly trick

    Date is not text, it is a number. I would think that the date was pulled in from another program?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formatting data does not seem to work ..

    Probably
    I said "text" because if OP has changed format - nothing happen

  8. #8
    Registered User
    Join Date
    05-29-2017
    Location
    Prague, Czech Republic
    MS-Off Ver
    10
    Posts
    13

    Re: Formatting data does not seem to work ..

    Anyway, Thank you really a lot!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formatting data does not seem to work ..

    You are welcome

    read my "dancing" footnote, here or above
    Last edited by sandy666; 05-29-2017 at 05:02 PM.

+ 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: 6
    Last Post: 05-09-2016, 05:17 PM
  2. [SOLVED] Adding sets of data from different work sheets into a third work sheet.
    By leele2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2013, 01:59 AM
  3. Replies: 1
    Last Post: 05-11-2013, 01:03 PM
  4. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  5. Macro to collate data from different work books and different work sheets
    By bvdileep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2012, 05:34 AM
  6. Extract data into a master work book by accessing various input work sheets/workbooks
    By kammariarun in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2011, 05:10 PM
  7. Replies: 1
    Last Post: 08-18-2006, 08:45 AM

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