Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is anybody knows how to deduct two dates and the result should be in number
of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days"
-- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Dear David,
If we include the end date what formula we use for eg 01/01/08 to 21/01/08 number of days should be 21. if we deduct the two dates the result comes to 20, please advice "David Biddulph" wrote: =INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days" -- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are saying you want to add 1 to the result of the B2-A2 subtraction. Do
you need someone to tell you how to add 1 to B2-A2? -- David Biddulph "tsony" wrote in message ... Dear David, If we include the end date what formula we use for eg 01/01/08 to 21/01/08 number of days should be 21. if we deduct the two dates the result comes to 20, please advice "David Biddulph" wrote: =INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days" -- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
David,
You have mistaken. In excel if we subtract two dates, it wont include the end date. I know how to add and subtract 1. Thanks for your reply. "David Biddulph" wrote: You are saying you want to add 1 to the result of the B2-A2 subtraction. Do you need someone to tell you how to add 1 to B2-A2? -- David Biddulph "tsony" wrote in message ... Dear David, If we include the end date what formula we use for eg 01/01/08 to 21/01/08 number of days should be 21. if we deduct the two dates the result comes to 20, please advice "David Biddulph" wrote: =INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days" -- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You have mistaken. In excel if we subtract two dates, it wont
include the end date. I'm not sure what mistake you think David made, but what you are talking about is not something confined to Excel and dates. And, actually, to be technical about it, it is the start date that is not included. The opposite of subtraction is addition... the value you get by subtracting a first number form a second number is what has to be added to the first number in order to get back to the second one again. This applies to all numbers, not just Excel dates. For example, using your day numbers from the same month... 21-1=20, not 21. As David alluded to, if you need to include the start date in the count of the difference in your days, you have to add 1 to your subtraction result. Rick |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
David,
Sorry to bother you. One more question. This is related to the old one. After finding the number of weeks there is another classification. if it is 0 - 3 weeks 25% of 100 4 - 6 weeks 50% of 100 7 - 10 weeks 75% of 100. Which formula we use to find the result. "David Biddulph" wrote: You are saying you want to add 1 to the result of the B2-A2 subtraction. Do you need someone to tell you how to add 1 to B2-A2? -- David Biddulph "tsony" wrote in message ... Dear David, If we include the end date what formula we use for eg 01/01/08 to 21/01/08 number of days should be 21. if we deduct the two dates the result comes to 20, please advice "David Biddulph" wrote: =INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days" -- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The numbers you are using in your example do not make sense to me. First,
there are 52 weeks in a year, not 100, unless the 100 stands for something else. Second, your week range percentages won't get anywhere near the 100 value you are using before hitting 100%. Third, your week ranges are varying... there is one less week in the 4-6 weeks span than either of the other two shown or what is left over for the implied 11-12 final weeks span. Could you give more realistic numbers for what you are looking for? Rick "tsony" wrote in message ... David, Sorry to bother you. One more question. This is related to the old one. After finding the number of weeks there is another classification. if it is 0 - 3 weeks 25% of 100 4 - 6 weeks 50% of 100 7 - 10 weeks 75% of 100. Which formula we use to find the result. "David Biddulph" wrote: You are saying you want to add 1 to the result of the B2-A2 subtraction. Do you need someone to tell you how to add 1 to B2-A2? -- David Biddulph "tsony" wrote in message ... Dear David, If we include the end date what formula we use for eg 01/01/08 to 21/01/08 number of days should be 21. if we deduct the two dates the result comes to 20, please advice "David Biddulph" wrote: =INT((B2-A2)/7)&" weeks and "&MOD(B2-A2,7)&" days" -- David Biddulph "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=INT((A2-A1)/7)&" weeks "& ((A2-A1)/7-INT((A2-A1)/7))*7&" days"
Vaya con Dios, Chuck, CABGx3 "tsony" wrote in message ... Is anybody knows how to deduct two dates and the result should be in number of weeks and days (eg. 26 days should be 3 weeks and 5 days)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date function in ACCRINTM requires date format not available | Excel Worksheet Functions | |||
MAX figure within a date range as a function of today()'s date | Excel Worksheet Functions | |||
SUMIF within date range as a function of today()'s date | Excel Worksheet Functions | |||
Date Function formula that will return the date of a specific week | Excel Worksheet Functions | |||
Calculating days between current date and a date in future NETWORKDAYS() function | Excel Worksheet Functions |