+ Reply to Thread
Results 1 to 4 of 4

Help in Date and Year

  1. #1
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Help in Date and Year

    Dear Friends I have a excel sheet which full of date

    (1) 24.09.2000 = it should be 01.05.2001 {Date 24 should be 01} {Month 09 show to 05} and {Year 2000 always increase one more 2001)

    (2) 03.05.1999 = it should be 01.05.2000 {Date 03 should be 01} {Month 05 show to 05} and {Year 1999 show as 2000}

    (3) 28.04.2005 = it should be 01.05.2005 {Date 28 should be 01} {Month 04 show to 05} and {Year 2005 show as 2005}

    (4) 15.03.2001 = it should be 01-05-2002 {Date15 should be 01} {Month 03 show to 05} and {Year 2001 show as 2001}


    Conditions:-

    Days=Always show 01

    Month= If month less than 5, then Month shows 05, and year should be intact (1999)

    Month= If month greater than 5, then Month shows 05, and year should be increase one (2000)
    for example:- 01.03.1999= it should be 01.05.1999
    01.05.1999= it should be 01.05.2000

    please friends help me please..........

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Urgent Help in Date and Year

    a
    b
    1
    24.09.2000
    01/05/2001
    2
    03.05.1999
    01/05/2000
    3
    28.04.2005
    01/05/2005
    4
    15.03.2001
    01/05/2001


    b
    1
    =date(if(month(value(substitute(a1,".","-")))<5,year(value(substitute(a1,".","-"))),year(value(substitute(a1,".","-")))+1),5,1)
    2
    =date(if(month(value(substitute(a2,".","-")))<5,year(value(substitute(a2,".","-"))),year(value(substitute(a2,".","-")))+1),5,1)
    3
    =date(if(month(value(substitute(a3,".","-")))<5,year(value(substitute(a3,".","-"))),year(value(substitute(a3,".","-")))+1),5,1)
    4
    =date(if(month(value(substitute(a4,".","-")))<5,year(value(substitute(a4,".","-"))),year(value(substitute(a4,".","-")))+1),5,1)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Re: Urgent Help in Date and Year

    Sixthsense
    Sir you solve my query......your formula works like a charm........
    and please do me a favor can you please explain this formula........its my humbly request to you.............

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Help in Date and Year

    Use Evaluate Formulas to know how the formula works.

    Refer the below link to know how to do it

    http://www.excel-user.com/2010/10/ev...xcel-2010.html

+ 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: 1
    Last Post: 11-23-2014, 06:02 AM
  2. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  3. [SOLVED] Keeping a date as current year, even though formula determines previous year
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 08:31 PM
  4. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  5. Replies: 3
    Last Post: 08-14-2012, 05:14 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