Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: Rounding dates in Excel 2000

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! )

    Thanks Christal

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,599
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-08 07:14, christal wrote:
    I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! [img]/board/images/smiles/icon_eek.gif[/img])

    Thanks Christal
    If A1 houses 02/25/03 (a date formatted entry) and B1 90,

    =A1+B1

    gives 05/26/03 (26-May-03) in C1.


  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =EOMONTH(A1+B1,IF(DAY(A1+B1)>=15,0,-1))+1

    Note: The EMONTH worksheet function is supplied by the Analysis ToolPak add-in.

    [ This Message was edited by: Mark W. on 2002-04-08 07:31 ]

  4. #4
    New Member
    Join Date
    Apr 2002
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Can you tell me what to use in the tool pak in order for this calculation to work??

    Thanks!

  5. #5
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-08 08:15, christal wrote:
    Can you tell me what to use in the tool pak in order for this calculation to work??

    Thanks!
    See the Excel Help topic for "Install and use the Analysis ToolPak".

  6. #6
    New Member
    Join Date
    Apr 2002
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-08 07:14, christal wrote:
    I am in need of some help in rounding dates. For example: Cell A1 has 02/25/03 and cell B1 has 90 (days). Cell C1 should be 06/01/03 because 90 days added to 02/25/03 is 05/26/03, yet it rounds to the nearest month (06/01/03). Am I making sense??? Help! )

    Thanks Christal
    Your question is somewhat unclear, do you want to "round" to the nearest month or not?
    You cannot really round dates the way you round other numbers..

    Here's a non ATP answer that will return the same as the answer you received from Mark

    =DATE(YEAR(A1+B1),MONTH(A1+B1)+IF(DAY(A1+B1)>=15,1,0),1)

    otherwise see Aladin's answer, if you add 90 days to 02/25/03 the result is 05/26/03, not 06/01/03..


    Regards,

    Peo Sjoblom

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •