How to subtract 2 dates to get number of days.....please

  • Thread starter Thread starter Nick
  • Start date Start date
Hi Nick,

Just subtract the oldest date from the newer one and format the result as General or Number, not Date.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| I've tried fornatting, to no avail.......I'm on Excel '97.
|
| Cheers
|
| Nick
|
|
 
Nick,

Simple subtraction will work. Excel stores dates internally as numbers.
When one of the cells involved in an arithmetic operation has a certain
format Excel often uses the same format for the output. You have two
options:

=B2-A2
and format the cell as general. Or,

=VALUE(B2-A2)

HTH
Kostis Vezerides
 
you could use
=datedif(Date1,Date2,"d")

datedif() is a useful function in EXCEL, but you won't find it in help
 

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

Back
Top