Greatest difference between a consecutive range of dates

G

Guest

Hi,

I have several lists of dates with associated info, I am trying to work out
if there is a simple function or way of calculating the largest interval
between them.
i.e

sept 04
jan 05
feb 05
may 05
dec 06

Obviously the longest period is may 05 to dec 06 and is 19 months

Any help would be greatly appreciated

Hugo
 
D

daddylonglegs

assuming tyou have true dates in A1:A10 and you want to find the maximum
gap in whole months

=MAX(DATEDIF(A1:A9,A2:A10,"m"))

confirmed with CTRL+SHIFT+ENTER
 
G

Guest

Hi Hygsie,

use an auxiliar column to calc the difference between data and a conditional
format to see the largest

hth
regards from Brazil
Marcelo


"Hugsie Bear" escreveu:
 
M

mrice

Why not do a simple subtraction to get a column of differences between
adjacent dates and then use the MAX function to give you the largest of
them?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top