+ Reply to Thread
Results 1 to 18 of 18

How many days left

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    How many days left

    I want to round the value down but is there also a way of rounding the number to the nearest whole number?

    =A13-NOW() = 10.67

    =ROUNDDOWN(A13-NOW()) This is an error.

    TIA
    Paul

    P.S. all I need to round to nearest is reduce the decimal points to zero.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: How many days left

    Perhaps
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or easier
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How many days left

    Hi,
    What does cell A13 contain?
    It is possible to have text in that cell.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    =A13-INT(NOW()) = 11 rounded up

    15/12/2022 = Custom (ddd dd-mmm-yyyy) Should get 10 instead of 10.65

    =A13-TODAY()
    If I move to another cell the forumula changes to
    =A13-TODAY() C2
    Last edited by otuatail; 12-04-2022 at 04:20 AM.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: How many days left

    =A13-INT(NOW()) = 11 rounded up
    Why would you want to round up? Does A13 contain something else than a date ( date and time?) ? If so
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Same goes for the second possibility
    If this does not work please post a small sample sheet ( see yellow banner). thx
    Last edited by Pepe Le Mokko; 12-04-2022 at 04:29 AM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,169

    Re: How many days left

    15/12/2002 - 04/12/2022 = 11 [a13 - today()]
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How many days left

    maybe just use

    B
    C
    D
    E
    13
    15/12/2022
    11
    =DATEDIF(TODAY(),B13,"D")

  8. #8
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    No that is wrong. Simply put
    =A13-NOW() = 10.61 so why= 11?

    =DATEDIF(TODAY(),A13,"D") = 11.00 NOT 10

    Try it yourself and see if you can get to 10 in cell K2
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How many days left

    @otuayail
    Why you use Now() instead of Today() to count days left?

  10. #10
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    No reason but A13-TODAY() is still 11 not 10.

    Try it out.

    ROUNDDOWN(10.61) = 10 which is what I would expect
    Last edited by otuatail; 12-04-2022 at 05:54 AM.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How many days left

    so use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and will be 10

    -1 because that day (TODAY() ) is not over yet
    Last edited by sandy666; 12-04-2022 at 05:58 AM.

  12. #12
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    That would only work if there are decimal points
    10.6 would result in 11-1 = 10
    10.0 would result in 10-1 = 9

    Do I need to create a macro to check if there are decimals and if so -1 other wise dont subtract anything

    Or I could place the 10.61 in a hiden cell and do and do an int into another cell.

    That would work.

  13. #13
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How many days left

    Quote Originally Posted by otuatail View Post
    No reason but A13-TODAY() is still 11 not 10.

    Try it out.

    ROUNDDOWN(10.61) = 10 which is what I would expect
    Still not clear for everyone. Why you need to be 10 when the days difference is 11 and is correct? You need to calculate the differences without weekends?

  14. #14
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    Okay but why do i get 10.61

    Thead closed.

  15. #15
    Registered User
    Join Date
    06-13-2013
    Location
    York
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: How many days left

    I was not including today from todat would be 10. Including today qould be 11.

  16. #16
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: How many days left

    Please try

    =INT(A13-NOW()) or ROUNDDOWN(A13-NOW(),0)

    Result is 10.

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How many days left

    Quote Originally Posted by otuatail View Post
    I was not including today from todat would be 10. Including today qould be 11.
    to whom you are talking ?

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

    Re: How many days left

    That would only work if there are decimal points
    10.6 would result in 11-1 = 10
    10.0 would result in 10-1 = 9
    If you use Today() you never get any decimal points
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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: 09-07-2021, 09:57 PM
  2. [SOLVED] If 5 days left then MsgBox "5 Days Left"
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2014, 11:59 AM
  3. [SOLVED] How many days left in the current month
    By lumberjim in forum Excel General
    Replies: 24
    Last Post: 11-12-2012, 03:25 PM
  4. [SOLVED] Time & Days Left
    By akbar in forum Excel General
    Replies: 8
    Last Post: 08-07-2012, 08:10 AM
  5. Days left in a month
    By kalkwarfp in forum Excel General
    Replies: 6
    Last Post: 06-27-2012, 02:09 AM
  6. Help calculating Days Left
    By Galrash in forum Excel General
    Replies: 1
    Last Post: 10-04-2011, 10:24 AM
  7. days left until shipment
    By noviceneil in forum Excel General
    Replies: 3
    Last Post: 05-05-2010, 10:34 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