Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Count days inside 2 dates

Sorry, I have been trying all sorts of different formulas to get this right.
I need a formulae that can calculate the numbers of day in C

A guest arrives on A, left on B, total numbers of days on C.

A B C
10/12/2008 11/12/2008 1 (days)
31/12/2008 03/01/2009 3
Much appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Count days inside 2 dates

Assume startdates in A2 down, enddates in B2 down
Then in C2: =B2-A2
Format C2 as general (via FormatCells), then copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Call me Ana, Ana Pego" wrote:
Sorry, I have been trying all sorts of different formulas to get this right.
I need a formulae that can calculate the numbers of day in C

A guest arrives on A, left on B, total numbers of days on C.

A B C
10/12/2008 11/12/2008 1 (days)
31/12/2008 03/01/2009 3
Much appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,344
Default Count days inside 2 dates

Hi,

Just FYI - you could use =DATEDIF(A1,B1,"d")

but none of us would because =B1-A1 is so much easier. However, the DATEDIF
function has other values for the last argument, here "d", which make it
potentially very useful.

--
Thanks,
Shane Devenshire


"Call me Ana, Ana Pego" wrote:

Sorry, I have been trying all sorts of different formulas to get this right.
I need a formulae that can calculate the numbers of day in C

A guest arrives on A, left on B, total numbers of days on C.

A B C
10/12/2008 11/12/2008 1 (days)
31/12/2008 03/01/2009 3
Much appreciated!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to count number of days between 2 dates? doyree Excel Discussion (Misc queries) 10 February 10th 08 12:32 PM
I want to count days between two dates including start date Infinitebiscuit Excel Worksheet Functions 2 February 20th 07 12:27 PM
Count number of days between dates BUT IF null to current date kathi Excel Worksheet Functions 1 February 14th 06 04:11 PM
FORMULA NEEDED TO COUNT DAYS IN EXCEL BETWEEN DATES Rhonda1 Excel Worksheet Functions 4 January 31st 06 12:13 AM
how would I count dates (not # of days) in cells that fall betwee. sailingscotts Excel Worksheet Functions 3 August 16th 05 04:29 AM


All times are GMT +1. The time now is 09:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"