+ Reply to Thread
Results 1 to 7 of 7

calculate number of days from current date

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    calculate number of days from current date

    Dear Expert,

    From the attached sheet, a column "Launch Date" is available with list of date and time.

    Requirement is to add one column after column K and then rename as 'Interval'.

    This interval should contain number by subtracting Launch date from current date. i.e.
    Interval = current date- Launch date

    I am able to do using formula but I require to automate it without doing the same task. is it possible to develop a small macro so as to fulfil the requirement.

    Thank you expert in advance
    Attached Files Attached Files

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

    Re: calculate number of days from current date

    something like this?
    L26: =DATEDIF(K26,TODAY(),"d") and copy down

    I know this is not a VBA solution

  3. #3
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    Re: calculate number of days from current date

    Thank You sandy for the solution.
    I kept the macro like below. is it fine ?
    Please Login or Register  to view this content.

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

    Re: calculate number of days from current date

    I am not VBA master but if it works for you that's good.

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    USA
    MS-Off Ver
    2003, 2010, 2013, 2016
    Posts
    12

    Re: calculate number of days from current date

    You could use the following, if you would like it to be a bit faster:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    Re: calculate number of days from current date

    Thank you bkm and Sandy for your great help

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

    Re: calculate number of days from current date

    You are welcome and thanks for the feedback

+ 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] Trying to calculate- compares two dates, chooses later date, tells days to current date
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2016, 12:20 PM
  2. Replies: 6
    Last Post: 08-27-2015, 06:40 PM
  3. Replies: 14
    Last Post: 04-06-2015, 09:19 PM
  4. [SOLVED] calculate No. of days between two date WITHIN A CURRENT MONTH
    By peteryt in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-16-2014, 10:53 AM
  5. [SOLVED] calculate days from earliest date to current date
    By codesRus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2012, 09:04 AM
  6. Replies: 10
    Last Post: 02-26-2012, 07:34 PM
  7. calculate No. of days between two date WITHIN A CURRENT MONTH
    By ahgoon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2009, 04:48 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