Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Robert Christie
 
Posts: n/a
Default A number of days into weeks and days

Hi

Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
gives 3.571429.......weeks.
How do you convert the decimal part of 0.571429 into number of days?. i.e. 4
Can an Excel formula give the correct answer of 3 weeks 4 days.
--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INT((H1-G1)/7)&" weeks"&IF(MOD(H1-G1,7)=0,"",", "&MOD(H1-G1,7)&" days")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robert Christie" wrote in message
...
Hi

Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
gives 3.571429.......weeks.
How do you convert the decimal part of 0.571429 into number of days?. i.e.

4
Can an Excel formula give the correct answer of 3 weeks 4 days.
--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro



  #3   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

=INT(3.571429)
will give you 3 weeks

=(3.571429-INT(3.571429))*7
will give you 4 days

Replace 3.571429 with your formula

Mangesh





"Robert Christie" wrote in message
...
Hi

Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
gives 3.571429.......weeks.
How do you convert the decimal part of 0.571429 into number of days?. i.e.

4
Can an Excel formula give the correct answer of 3 weeks 4 days.
--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro



  #4   Report Post  
Alex Delamain
 
Posts: n/a
Default


=mod(enddate - startsdate,7) will give the number of days.

so

=INT((enddate-startdate)/7)&" weeks "&MOD(enddate-startdate,7)&" days"

returns

3 weeks 4 days


--
Alex Delamain
------------------------------------------------------------------------
Alex Delamain's Profile: http://www.excelforum.com/member.php...o&userid=11273
View this thread: http://www.excelforum.com/showthread...hreadid=400393

  #5   Report Post  
Robert Christie
 
Posts: n/a
Default

Thank you Bob, Mangesh and Alex for your quick replies.
--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro


"Bob Phillips" wrote:

=INT((H1-G1)/7)&" weeks"&IF(MOD(H1-G1,7)=0,"",", "&MOD(H1-G1,7)&" days")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robert Christie" wrote in message
...
Hi

Taking date of the 5-8-2005 from 30-8-2005 then dividing the answer by 7
gives 3.571429.......weeks.
How do you convert the decimal part of 0.571429 into number of days?. i.e.

4
Can an Excel formula give the correct answer of 3 weeks 4 days.
--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro




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
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Arrays Take too long. VERY HARD QUESTION. my head hurts : / belly0fdesire Excel Worksheet Functions 1 August 6th 05 12:47 AM
Calculating number of weeks from two dates spudgun Excel Discussion (Misc queries) 5 August 4th 05 12:08 AM
How do I sort by date (not days, weeks, months) in Excel 2000? Tony Excel Discussion (Misc queries) 1 January 21st 05 03:28 PM
Need number of months or weeks passed from formula Cowtoon Excel Worksheet Functions 9 November 12th 04 09:06 PM


All times are GMT +1. The time now is 08:25 AM.

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"