Formula to calculate date difference

  • Thread starter Brigitte D'Andrea
  • Start date
B

Brigitte D'Andrea

I have one column with a "beginning date", another column
with "ending date" and need the formulat to calculate the
number of day difference between the two?
Could anyone please provide quickly for me? Of course, I
need this ASAP.
 
C

Chip Pearson

Brigitte,

Dates are just numbers, so you can subtract the beginning date from the
ending date to return the number of days between the dates. E.g.,

=end_date - start_date

Be sure to format the result cell as General or numeric.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 
J

J.E. McGimpsey

Since XL stores dates as integer offsets from a base date, you can
just subtract the two:

A1: 1 November 2003
A2: 3 November 2003

A3: =A2 - A1 ==> 2
 
B

Bob Phillips

Brigitte,

Dates are just numbers, subtract one from the other.

If you just want working/business days, try NETWORKDAYS
NETWORKDAYS(start_date,end_date,holidays)

where holidays is a range of holiday dates. It's part of the Analysis
Toolpak addin, so you will need to install this.


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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