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

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to get
the count number of days between these two dates. If the time in Cell A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 252
Default Days between 2 dates

=INT(B1-C1)

you will have to format the cell as a number after putting in the formula.

"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to get
the count number of days between these two dates. If the time in Cell A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 252
Default Days between 2 dates

Ooops I meant to say...
=INT(B1-A1)
but that's not really what you want is it? Try this one
=DATEDIF(A1,B1,"D")-(HOUR(A1)11)


"Sloth" wrote:

=INT(B1-C1)

you will have to format the cell as a number after putting in the formula.

"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to get
the count number of days between these two dates. If the time in Cell A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default Days between 2 dates

One way:

=INT(B1-ROUND(A1,0))



=BIn article ,
"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to get
the count number of days between these two dates. If the time in Cell A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,726
Default Days between 2 dates

Why not just

=INT(B1-A1)-(HOUR(A1)11)

but reading the OP, perrhaps it should be

=INT(B1-A1)+(HOUR(A1)<=11)



--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Sloth" wrote in message
...
Ooops I meant to say...
=INT(B1-A1)
but that's not really what you want is it? Try this one
=DATEDIF(A1,B1,"D")-(HOUR(A1)11)


"Sloth" wrote:

=INT(B1-C1)

you will have to format the cell as a number after putting in the

formula.

"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to

get
the count number of days between these two dates. If the time in Cell

A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda








  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 252
Default Days between 2 dates

It really depends on the OP's preference really. Look at the following
examples to see why I went with DATEDIF...

5/30/2006 2:15 AM
6/19/2006 1:15 AM
=INT(B1-A1) - 19
=DATEDIF(A1,B1,"D") - 20

5/30/2006 2:15 AM
6/19/2006 3:15 AM
=INT(B1-A1) - 20
=DATEDIF(A1,B1,"D") - 20



"Bob Phillips" wrote:

Why not just

=INT(B1-A1)-(HOUR(A1)11)

but reading the OP, perrhaps it should be

=INT(B1-A1)+(HOUR(A1)<=11)



--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Sloth" wrote in message
...
Ooops I meant to say...
=INT(B1-A1)
but that's not really what you want is it? Try this one
=DATEDIF(A1,B1,"D")-(HOUR(A1)11)


"Sloth" wrote:

=INT(B1-C1)

you will have to format the cell as a number after putting in the

formula.

"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to

get
the count number of days between these two dates. If the time in Cell

A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda







  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 174
Default Days between 2 dates

So, what's the answer for the example you give, Linda?

"Linda RQ" wrote:

Hi Everyone,

Using Excel 2003. What function or formula would I use in Cell C1 to get
the count number of days between these two dates. If the time in Cell A1 is
PM, we don't want that day counted.

Cell A1
5/30/06@2:15am

Cell B1
6/19/06@6:16pm

Thanks,
Linda




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
duration days jack nelson Excel Discussion (Misc queries) 10 August 29th 06 07:18 AM
Repete Dates at a value of 28 days, 56 & 84 Mr Mr Excel Worksheet Functions 6 August 26th 06 07:21 PM
need help with formula Bryan J Bloom Excel Discussion (Misc queries) 11 October 31st 05 10:52 PM
convert dates to number of days milk0s Excel Worksheet Functions 2 September 28th 05 01:31 PM
Brainteaser about Days Between Dates Johnny Excel Discussion (Misc queries) 5 April 4th 05 05:09 AM


All times are GMT +1. The time now is 10:59 AM.

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

About Us

"It's about Microsoft Excel"