+ Reply to Thread
Results 1 to 9 of 9

Partial column formating

  1. #1
    Registered User
    Join Date
    11-15-2009
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Partial column formating

    I have a workbook and one page is sorted by dates It stopped working and I couldn't see why so I selected the column and reformatted the dates to long date (January 04, 2014) so I could see what the problem was. Rows 4 - 38 changed as expected but 39 -105 remained as short date format (01/04/2014)
    There must be something wrong with the data that excel can't change it to dates but I can't find it.
    Attached Files Attached Files

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Partial column formating

    that is because rows 39-105 are not real XL Dates....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Partial column formating

    Starting in row 39 your dates are actually stored as text. Here's one way to convert them:

    1. Select column H
    2. Copy
    3. Select I1
    4. Paste, Paste Special, click under Operation, the Add button
    5. Click OK
    6. Cut column I and paste back to column H.


    Now apply your date formatting.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Partial column formating

    you can also use the DATEVALUE formula to convert to real XL date and then apply your date formatting....just another way skin the kitty cat (not trying to offend any cat lovers)....

  5. #5
    Registered User
    Join Date
    11-15-2009
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Partial column formating

    Thanks worked perfectly I tried this but did not use the ADD button or cut and past I used copy and paste.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Partial column formating

    Quote Originally Posted by Porsche View Post
    Thanks worked perfectly I tried this but did not use the ADD button or cut and past I used copy and paste.
    Where did you get the data from in the first place? I suspect that's the source of the problem. I'd also hazard a guess that perhaps the data has been used with a different regional setting at some stage and a csv file created from it. It's probably not a coincidence that the last 'good' date on row 38 is equally valid whatever the regional setting, i.e. either 1st November 2014 (a normal uk setting) or 11th January as a US setting. Not the case with row 39 where the 14 can be a day but not a month number.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Registered User
    Join Date
    11-15-2009
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Partial column formating

    I built the spread sheet for someone else and it's data was all entered by one user. It may have been manipulated by someone filling in for him. I do not know who imported the text dates.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Partial column formating

    i wouldnt trust any of those dates! as Richard said some have resolved to dates and others not you need to see the original data to find out what format they were in seeing as row 39 onwards hasnt resolved it tends to suggest they were input in us format but to putt a spanner in the works row33 has resolved 13/02/2014
    now if that had been input in us format it would say 02/13/2014 and be further down the list
    Last edited by martindwilson; 03-05-2014 at 10:30 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Partial column formating

    Quote Originally Posted by Porsche View Post
    I built the spread sheet for someone else and it's data was all entered by one user. It may have been manipulated by someone filling in for him. I do not know who imported the text dates.
    ...Mmmm

    I suggest a classic case of GIGO

    You'll need to go back and bring the data back to a consistent standard.

+ 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. [SOLVED] find last partial value in a column
    By Jovica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2014, 10:08 AM
  2. Looking up partial text from a column
    By bronkista in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2013, 10:31 PM
  3. [SOLVED] Column or Row, with partial information
    By Crispy85 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-24-2013, 02:41 AM
  4. Replies: 2
    Last Post: 06-18-2013, 10:26 AM
  5. [SOLVED] Conditional formating based on text in 2 columns (but only partial text!)
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 06:26 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