#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default count day's

when i enter a date in A1 and another date in B1, i want that in C1 should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1 week
and 3 days, (not 10 days)
--
mf
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default count day's

=INT((B1-A1)/7)&" week "&MOD(B1-A1,7)&" days"

--
__________________________________
HTH

Bob

"moshe" wrote in message
...
when i enter a date in A1 and another date in B1, i want that in C1 should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1 week
and 3 days, (not 10 days)
--
mf



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default count day's


moshe;223756 Wrote:
when i enter a date in A1 and another date in B1, i want that in C1
should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1
week
and 3 days, (not 10 days)
--
mf


Try =int((finishdate-startdate)/7)&" weeks
"&mod((finishdate-startdate),7)&" days"


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=61931

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default count day's

Try this

=INT(DATEDIF(A1,B1,"d")/7) &" Weeks " &MOD(DATEDIF(A1,B1,"d"),7) & " Days"

Note that DATEDIF isn't documented in Excel so for help look here

http://www.cpearson.com/excel/datedif.htm

Mike

"moshe" wrote:

when i enter a date in A1 and another date in B1, i want that in C1 should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1 week
and 3 days, (not 10 days)
--
mf

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default count day's

And note also that if you are counting days, you don't need DATEDIF.

DATEDIF(A1,B1,"d")
is the same as
B1-A1
--
David Biddulph


"Mike H" wrote in message
...
Try this

=INT(DATEDIF(A1,B1,"d")/7) &" Weeks " &MOD(DATEDIF(A1,B1,"d"),7) & " Days"

Note that DATEDIF isn't documented in Excel so for help look here

http://www.cpearson.com/excel/datedif.htm

Mike

"moshe" wrote:

when i enter a date in A1 and another date in B1, i want that in C1
should
calculate the days,
EX: if the dates are from 02/10/09 - 02/20/09, it should be written 1
week
and 3 days, (not 10 days)
--
mf



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
Networkdays to open previous day's file Dave Excel Worksheet Functions 3 July 31st 08 06:22 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 09:45 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"