+ Reply to Thread
Results 1 to 4 of 4

Calculate period between multiple dates _VBA script

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Thumbs up Calculate period between multiple dates _VBA script

    Hi All,
    Could you help me with excel VBA to calculate period between multiple dates. I have a big data , data has multiple dates are in there. I know how to calculate period between two dates but these are 3 and 4 dates on in it. Date format is MM/DD/YYYY format. If I get any VBA script that would be great. For example, Please refer attachment.

    Many thanks in advance.Thanks for your help
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Calculate period between multiple dates _VBA script

    Would it not be the most recent day minus to oldest date? The in-between days are irrelevant!
    Or am I misunderstanding the context??
    Regards,
    Rudi

  3. #3
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: Calculate period between multiple dates _VBA script

    any help plsss

  4. #4
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Calculate period between multiple dates _VBA script

    Try this code:
    Select the empty cell below the date column and run the macro.
    The macro calculates the difference between the FIRST date and the LAST date in the cells above the empty cell you select and displays the difference in days.

    Please Login or Register  to view this content.

+ 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: 3
    Last Post: 04-08-2014, 04:54 AM
  2. [SOLVED] Automatic Withdrawls: Calculate future dates, convert to workday, which pay period
    By Canuck 'Eh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-23-2014, 12:23 PM
  3. Replies: 1
    Last Post: 04-24-2013, 11:38 PM
  4. [SOLVED] Complicated:Calculate time period based on no. of units sold + fluctuations within period
    By omaha.crab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 03:04 AM
  5. Replies: 15
    Last Post: 09-16-2009, 12:02 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