+ Reply to Thread
Results 1 to 5 of 5

EDATE can't handle decimals?

  1. #1
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    174

    EDATE can't handle decimals?

    What I'm trying to do is to use EDATE to add buffer time to my dates

    It seems that for example =EDATE(C168,-0.5) I cannot use 0.5 for 1/2 month and 1.5 for 1 1/2 months for example

    Is there any workaround or another command I can use to get my desired output?

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: EDATE can't handle decimals?

    Maybe?

    =C168-0.5*30

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: EDATE can't handle decimals?

    May be
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    174

    Re: EDATE can't handle decimals?

    did a bit of googling, best answer looks to be here

    but it seems needlessly complicated and I don't need a high degree of accuracy so I'll just use "DATE"-15 for 1/2 months and EDATE(A1,-1)-15 for 1/2 months

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: EDATE can't handle decimals?

    Two options:

    Option 1)

    For -0.5: (average of 0 and -1)
    =AVERAGE(EDATE(C168,{-1,0}))

    For 0.5: (average of 0 and 1)
    =AVERAGE(EDATE(C168,{0,1}))

    For -1.5: (average of -2 and -1)
    =AVERAGE(EDATE(C168,{-2,-1}))

    Option 2)

    For -0.5:
    =AVERAGE(EDATE(C168,FLOOR(-0.5,1)),EDATE(c168,CEILING(-0.5,1)))

    Similar to option 1 with -0.5 is rounded in to 0 and -1

    Change -0.5 to 0.5 or 1.5 based on requirement.
    Quang PT

+ 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. Rounding 2 decimals to specific 2 decimals
    By danyel191 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2016, 01:41 PM
  2. Replies: 2
    Last Post: 02-13-2015, 07:36 AM
  3. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. EDATE
    By David Billigmeier in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 05:05 AM
  5. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] EDATE
    By Droodhall in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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