+ Reply to Thread
Results 1 to 10 of 10

Convert number of days into date

  1. #1
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Convert number of days into date

    Hello All,
    I'm stuck in this & need the help that i can get. I have this excel sheet in which i have data for Booking that i have done & for the same i keep a cancellation date which i keep for 40 days from eg: today's date is 10th Jan'18 & if i calculate 40days would be 19th Feb'18 which it should display. default is 40days. A another eg: i did a booking today 10th Jan'18 & the cancellation i'll keep as 20th March'18 but it should in CELL A should display me what would be the 40th day (DATE). If anyone can please help me on this. Thank You

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Convert number of days into date

    Welcome to the forum!

    In the cell where you want to display the date that is 40 days on:

    =A1+40

    where A1 contains the booking date.

    Format your cell as a date.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Re: Convert number of days into date

    Wow! It just worked. Thank you so much. If its ok one more thing, with the above formula i'm getting the date on the 40th day now here i placing another formula in B1 in which i'm calculating Cancellation Date - Booking Date = For No. of Days. In C1 the formula that i want is No. of days Past 40Days. which is B1-40 = answer, but here along with the Value if i need to display the word Days along. How to do it?? Please.

  4. #4
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Re: Convert number of days into date

    Wow! It just worked. Thank you so much. If its ok one more thing, with the above formula i'm getting the date on the 40th day now here i placing another formula in B1 in which i'm calculating Cancellation Date - Booking Date = For No. of Days. In C1 the formula that i want is No. of days Past 40Days. which is B1-40 = answer, but here along with the Value if i need to display the word Days along. How to do it?? Please.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Convert number of days into date

    Try:

    =DATEDIF(A1,B1)&" Days"

  6. #6
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Re: Convert number of days into date

    its giving error message for the above formula like =DATEDIF(A1,B1)&"DAYS".
    eg: The booking was done on 10-Jan-18, the cancellation is on 15-Mar-18 so it is 64days so minus it with 40days its 24. here if i'm using the formula 64-40=24 using it as =(C1-40)&"DAYS" it is like giving this green tag on top left of the cell stating something is not right in the formula? How can i write the formula where it would get this 24 Days??

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Convert number of days into date

    You will need to attach the workbook.

  8. #8
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Re: Convert number of days into date

    Please find the attached file for your reference. I needed DAYS to be displayed after the number that's CELL J
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-10-2018
    Location
    Bangalore
    MS-Off Ver
    2007
    Posts
    6

    Re: Convert number of days into date

    Hello were you able to find the solution for the problem??

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Convert number of days into date

    Two ways to do this

    You can change the formula in J3 to the following

    =H3-40&" days"

    ....OR....

    leave the formula as it is and just custom format cell as

    0" days";;

    The latter is better if you want to use column J for further calculations, because the underlying cell value is still a number
    Audere est facere

+ 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] A number of days into weeks and days-How do you convert the decimal part of 0.571429
    By Robert Christie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-25-2020, 09:37 PM
  2. Replies: 1
    Last Post: 09-25-2016, 06:18 PM
  3. [SOLVED] Convert number to Days/hours/Minutes after 31 days
    By MB77035 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2015, 11:45 AM
  4. Convert number of days to specific time & date
    By theperson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2013, 11:44 AM
  5. Replies: 3
    Last Post: 11-12-2012, 04:03 PM
  6. how to convert date to number of days
    By ondagreen in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-23-2011, 12:39 PM
  7. [SOLVED] how do I convert a number to number of years, months and days
    By because in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2005, 02: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