answersLogoWhite

0

Put the two dates into separate cells. Say you put the earlier one in cell A1 and the later one in cell A2. Then in cell A3 you could put the formula:

=A2-A1

This will initially give you a date. Then you would format the cell as a number, using the Format menu and the Cells option and the Number option. Alternatively you could click on the comma icon on the formatting toolbar. The number that is displayed will be the difference in days between the two dates.

Another way to do it is with the Datedif Function.

=DATEDIF(Date1, Date2, Interval)

Where:

Date1 is the first date.

Date2 is the second date.

Interval is the interval type to return.

If Date1 is later than Date2, DATEDIF will return a #NUM! error. If either Date1 or Date2 is not a valid date, DATEDIF will return a #VALUE error. The Interval value should be one of "d", "m", "y", "ym", "yd" or "md". These will give you the result in days, months, years, months excluding years, days excluding years and days excluding years and months.

For the earlier example you could do it like this:

=DATEDIF(A1,A2,"d")

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you calculate the number of days between two dates including weekends and bank holidays?

For Excel:Format A1 and A2 in the date format you prefer.Put your first date in A1 and your second date in A2.In A3, put the following formula: =A2-A1Observe the number of days between the two dates displayed in A3.


Calculate the number of days from March 3 2009 to May 12 2010?

There are 436 days, inclusive of the dates given.


How do you calculate the number of moon days to earth days?

Count the days and calculate them


How do you find the number of years weeks days between two dates you need this for calculating the amount of time from hire in date to todays date that an employee has been with the company?

Use excel. You need two cells with the dates in them (one with hire date, one with "=TODAY()" in it). Then to calculate the number of days (x), subtract one from the other. You can then create formulae to calculate number of years (=x/365), weeks (=x/7).


How do you calculate the number of days between two dates and return a 0 when cell is null?

-- If the earlier date is in A1 and the later date is in B1, then the number of days between the dates is just [ = B1 - A1 ]. -- Format the cell with [ = B1 - A1 ] in it to display [ number / zero decimal places ]. -- Under [ File / Options / Advanced / ], find the choice on the big list there that says "Display zero in cells with zero value" and check the box.


How do you use the datedif function in Microsoft Excel?

DATEDIF function computes the difference between two dates in a variety of different intervals, such as the number of years, months, or days between the dates.Syntax for DATEDIF: =DATEDIF(Date1, Date2, Interval)Date1 = first dateDate2 = second dateInterval = interval typeInterval Types:m = Months (complete calendar months between dates)d = Days (number of days between dates)y = Years (complete calendar years between dates)ym = Months Excluding Years (complete calendar months between dates like they were in the same year)yd = Days Excluding Years (complete calendar days between dates like they were in the same year)MD = Days Excluding Years And Months (complete calendar days between dates like they were in the same month and same year)


How can I accurately calculate the number of business days in a given time period?

To accurately calculate the number of business days in a given time period, exclude weekends and holidays from the total number of days. Subtract the non-business days from the total days in the time period to determine the number of business days.


How many Number of days between 16-02-1986 and 01-07-2010?

Those dates are 8,901 days apart.


How do you find out days and month calculation in Excel?

Arithmetic works with dates and displays the results as days, so just multiply the result times 24 to get the approximate number of hours between the dates (Excel default format for dates assumes each day has a full 24 hours). If your oldest date is in A1 and your most recent date is in A2, use the following formula to calculate hours between the two dates: =(A2-A1)*24.If you need to show exact hours between specific times for two dates, just format A1 and A2 to display both date and time (a standard option under cell format for dates SAMPLE: 1/1/09 12:00 AM).


How do you calculate number of hours to days?

Divide the number of hours by 24.


How many days between February the 28th and December the 1st?

Including the start and end dates in the calculation, there are 184 days between the two dates.


How can you calculate the days of monthly circulation?

To calculate the days of monthly circulation, multiply the average number of copies circulated per day by the number of days in the month. This will give you the total monthly circulation.