Subtracting dates in Excel 2003

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

I'm trying to subtract dates in E2003, but I'm getting a date as the output:
1/17/2007-11/3/2005 gives me not a number of days but 3/15/1901.

Any suggestions?
 
Pete,

Select the cell with your formula. Click the 'Format' drop down and select
'Cells' and you should have the 'Number' tab selected. Change the format to
a number with no places to the right of the decimal and OK your way out.

Steve
 
Cool. So why doesn't Office Help mention this tidbit?
--
Thanks!

Pete.


Steve Yandl said:
Pete,

Select the cell with your formula. Click the 'Format' drop down and select
'Cells' and you should have the 'Number' tab selected. Change the format to
a number with no places to the right of the decimal and OK your way out.

Steve
 
The help file mentions it in a note at the bottom of "Calculate the
difference between two dates" (Excel 2003). The problem is that Excel is
automatically formatting your calculation as a date, since the underying
cells are dates. This assumption Excel makes is nearly never correct when
running a calculation on two dates.

Pete said:
Cool. So why doesn't Office Help mention this tidbit?
 

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