ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Substracting Dates. (https://www.excelbanter.com/excel-discussion-misc-queries/66452-substracting-dates.html)

exsam21

Substracting Dates.
 

I want excel to count the # of days between 01/20/2006 and 02/28/2006


--
exsam21
------------------------------------------------------------------------
exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=503455


Leith Ross

Substracting Dates.
 

Hello exsam21,

Example:
A1 = 01/20/2006
A2 = 02/28/2006
A3 = A2-A1

Format A3 as NUMBER with no decimal places. This will be the number of
days.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=503455


Fable

Substracting Dates.
 

If 1/20/2006 is in cell A1 and 2/28.2006 is in cell B1 the formula would
be
=TEXT((B1-A1),"#")

;)


--
Fable


------------------------------------------------------------------------
Fable's Profile: http://www.excelforum.com/member.php...fo&userid=2185
View this thread: http://www.excelforum.com/showthread...hreadid=503455


Bob Phillips

Substracting Dates.
 
Just subtract one from the other. Excel stores dates as days since 1str jan
1900, so a simple subtraction suffices.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"exsam21" wrote in
message ...

I want excel to count the # of days between 01/20/2006 and 02/28/2006


--
exsam21
------------------------------------------------------------------------
exsam21's Profile:

http://www.excelforum.com/member.php...o&userid=22666
View this thread: http://www.excelforum.com/showthread...hreadid=503455





All times are GMT +1. The time now is 03:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com