View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default date calculation

And what *is* the correct number? Do you want 'whole' months? (months


=DATEDIF(C4,B4,"m")

(see http://cpearson.com/excel/datedif.htm for documentation)

In article ,
Pammy wrote:

If I have 2 date columns how do I create a formula to subtrack? example:
(b4) November 30, 2007 and (c4) November 6, 1986. My formula is:
=month(b4)-month(c4) in column D, but I get 0 and I have formatted the
column to numbers.
I also did =month(c4)-month(b4). Is there another way to this to get the
correct #?