+ Reply to Thread
Results 1 to 4 of 4

formatting date column from (dd/mm) to (dd/mm/yyyy) according to today

  1. #1
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    formatting date column from (dd/mm) to (dd/mm/yyyy) according to today

    Hello my friends,

    Please have a look to my attached file.
    I need to tidy my date column with this logic:

    if it is written there : 13.02 i wanna make it -------> 13.02.2015
    bcuz we already lived february of this year

    if it is written there: 20.05 i wanna make it -------> 20.05.2015
    bcuz we already lived this day of this year

    if it is written there: 22.05 i wanna make it --------> 22..05.2015
    bcuz we lived and still living this day

    BUT,

    if it is written there, 23.05 i wanna make it ----------> 23.05.2014
    bcuz we didnt live this day yet so i wanna date it as 2014

    if it is written there, 01.08 i wanna make it ----------> 01.08.2014
    bcuz we didnt live this day in this year yet so i wanna date it as 2014

    if it is written there, 15.12 i wanna make it ----------> 15.12.2014
    bcuz we didnt live this day in this year yet so i wanna date it as 2014
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: formatting date column from (dd/mm) to (dd/mm/yyyy) according to today

    Try

    =EDATE(A2,-12*(A2>TODAY()))

  3. #3
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: formatting date column from (dd/mm) to (dd/mm/yyyy) according to today

    tutto, tutto perfetto!!!
    bravo Junmo1
    thanks a lot!!!!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: formatting date column from (dd/mm) to (dd/mm/yyyy) according to today

    You're Welcome

+ 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] Formate( date, dd/mm/yyyy) use making my dates today's date
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2013, 06:57 AM
  2. Replies: 1
    Last Post: 01-24-2013, 04:52 PM
  3. Date Formatting - dd/mm/yyyy
    By IheartIUP in forum Excel General
    Replies: 1
    Last Post: 11-14-2012, 11:55 AM
  4. Replies: 3
    Last Post: 08-18-2010, 12:58 PM
  5. [SOLVED] Userform Date Formatting MM/DD/YYYY
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-09-2010, 12:51 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