Finding number of days between 2 dates

dbrb2

New Member
Joined
Aug 11, 2002
Messages
30
I have a column of dates, and want to have a further column which shows the days between the date in each cell of the column and the current date (i.e the date stored in the system clock). Can anyone suggest any ways of doing this?

Ben
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I had already tried that I'm afraid, it appears to subtract one date from another, and the output is a date. I was hoping to find a way of outputing a number - so that for instace 17/8/02 would give 3 (taking the date format as dd/mm/yyyy, and todays date as the 14th , 17-14=3.
 
Upvote 0
I had already tried that I'm afraid, it appears to subtract one date from another, and the output is a date. I was hoping to find a way of outputing a number - so that for instace 17/8/02 would give 3 (taking the date format as dd/mm/yyyy, and todays date as the 14th , 17-14=3.
 
Upvote 0
I had already tried that I'm afraid, it appears to subtract one date from another, and the output is a date. I was hoping to find a way of outputing a number - so that for instace 17/8/02 would give 3 (taking the date format as dd/mm/yyyy, and todays date as the 14th , 17-14=3.
 
Upvote 0
I had already tried that I'm afraid, it appears to subtract one date from another, and the output is a date. I was hoping to find a way of outputing a number - so that for instace 17/8/02 would give 3 (taking the date format as dd/mm/yyyy, and todays date as the 14th , 17-14=3.
 
Upvote 0
dbrb2,

You may try to use following formula:

=DATEDIF(Date1,Date2,"D") where Date1, Date2 can refer to cells or constant values.

HTH,
Dennis
 
Upvote 0
On 2002-08-14 07:41, dbrb2 wrote:
This works:

=DATEDIF(A1,NOW(),"d")

So does =TODAY()-A2... You just need to reformat the cell containing this formula as General.

The formula...

=TODAY()-(A2&"")

can also be used to prevent Excel from interpeting the formula's results as a datevalue.
This message was edited by Mark W. on 2002-08-14 08:00
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top