[Question] How to calculate difference between two days

H

Hovey

If I ahve a start date & end date, how I can get a correct difference
bewteen these two days?

For example, "Start Date" is 2006-05-29 and "End Date" is 2006-05-31. It
suppose is 2 days difference. I have used "Days360()" to calculate. The
result come out is "1".

How can I get a correct result?
 
D

Dave Peterson

Just subtract the two.

=a2-a1

Probably better, if you really want 1:
=a2-a1-1

Make sure the cell is formatted as General (or anything but Date).
 
D

dodong

Try this, supposed you want the difference between the date in cell A1
and B1

=DatedIF(A1,B1,"D")
this will give you the difference in Days, if you want the result by
month or year just replace D with M and Y for year.

Dodong
 

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