Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jim
 
Posts: n/a
Default

There is no single formula that is appropriate for determining the period
between two dates in all situations. This is because the neither number of
days in a year nor the number of days in a month is constant. For some
purposes, such as determining a person's age, it may be appropriate to ignore
the effects of a leap year. For other purposes, the extra day in a leap year
may be important.

Consequently, you have to determine the purpose of your calculation and the
logic that supports that purpose before you design your formula (or write
your custom function using VBA). For example, if you were calculating the
period from February 28, 2005 to March 31, 2006, the correct answer might be
(a) 1 year, 1 month and 3 days, or (b) 1 year and 1 month, or (c) 365 + 31
days = 1.0849 years, depending on the purpose of the calculation. Each of
these possibilities would result in a different formula.

Depen
"Lyle" wrote:

Hello. I am fairly familiar with Excel and have been racking my brain trying
to figure a formula out. Here is the scenario. The military uses dates in
this order yyyymmdd ( i.e. 20050401 is April 1, 2005). I have two colums of
data in this fomat and I want to subtract one from the other to give me
atleast a total number of months and years. For example 19971015 minus
19600212. The long hand answer is 37y08m03d. I have 3190 of these I must
compute. Any help out there?
--
Lyle

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Conversion lookup formula Manos Excel Worksheet Functions 2 November 12th 04 07:53 AM


All times are GMT +1. The time now is 04:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"