+ Reply to Thread
Results 1 to 6 of 6

Various date formats in same column

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Various date formats in same column

    Hello

    I need for my office a table which has one column with dates. The "issue" is, that sometimes I know the whole date (day, month, year), sometimes only the month and year and occasionally just the year. Is there a way through custom number formatting that excel behaves correctly? How would I need to set conditions to achieve this? Because now something happens which is 99% incorrect

    Any help greatly appreciated. Thanks!
    mardiefe

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Various date formats in same column

    Please post a file with different formats
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Various date formats in same column

    One way to achieve this is that you can place three button on the sheet, those when clicked will change the date format of the desired date column.
    Please find the attached sheet to see if this is something you can work with.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Various date formats in same column

    You can determine part of what the problem is by selecting the column of "dates" and format the column as GENERAL. All of the real dates will be turned into their serial numbers. The others will remain as text.

    If you can upload your workbook with the column of dates, perhaps we could determine a method of producing real dates from what you have. It is also possible that in order to get dates, you are either going to have to find the dates from other sources or come to a policy of using say the 1st of the month instead of partial dates. Where you only have years, the 1st of the year may be the only thing you can use. If you are not the one with the authority to determine this, find out what policy should be followed when confronted with partial dates. Let us know what this policy is and then maybe we can help further.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Various date formats in same column

    communication failure

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Various date formats in same column

    Moreover if you don't want to change all dates to a single format and want to change different dates to the different format, you can also do so by selecting the desired date cells and clicking on the desired date format button on the sheet.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-05-2014
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Various date formats in same column

    Hi everyone

    Thanks for your replies. I try to be more specific and added an example file. I cannot add the original as it contains sensitive data

    So the data I might be entering could be as in row 2 (just a year, i.e. "2015"), as in row three (full date), or as in row four (just the month and the year). The reason for that is, that sometimes date and / or month are not yet available. I would like that the cell automatically shows up a proper form such as:

    row 2: 2015
    row 3: 09.04.2014
    row 4: 04.2014
    row 5: 2016
    row 6: 03.12.2016
    row 7: 04.2015

    I read in another forum (http://www.mrexcel.com/forum/excel-q...-optional.html) that I can tackle this with conditional formatting, however there the issue was with days and hours. So my question would be, how can I set the format of cells that it shows entries like in my shown list above, no matter whether I only enter a year, a year and a month or the full date. Is that achievable without macros? (I'm aware of that I could use some macro, but I am not allowed to run those in my office).

    Thanks for your support (if this is at all solvable without macros).

    mardiefe
    Attached Files Attached Files

+ 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: 4
    Last Post: 08-25-2012, 07:49 AM
  2. Multiple date formats within a single column
    By the big frame in forum Excel General
    Replies: 3
    Last Post: 02-22-2012, 05:02 PM
  3. How to change multiple date formats in same column
    By muchado in forum Excel General
    Replies: 6
    Last Post: 11-10-2010, 01:37 AM
  4. [SOLVED] Copy Color Formats Based On Column Date Values
    By Naji in forum Excel General
    Replies: 0
    Last Post: 01-11-2006, 05:10 PM
  5. [SOLVED] Copying formats - column widths, formats, outlining to worksheets
    By DavidBr318 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2005, 09:05 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