find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

1. find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Please help me again on the problem shown on the attached file.(My excel sheet is attached in the post)

Thank you all very much in advance, I will give your all stars if you experts help give me the answers!

1. (Urgent)

Question: Formula to find remaining duration( in months or days unit) between two dates.
Detail: the two dates, are both in 3 separate cells as Y/M/D, (instead of the date in the 1 cell) , e.g
Today's Date: Y/M/D ( in 3 separate cells) : 2014(year)=A3, 2(month)=B3, 20(day)=C3
Previous Date:Y/M/D ( in 3 separate cells) : 2011(year)=B10, 3(month)=C10, 4(day)= D10

with the rule of 3 years membership( 2014-2011 is 3 year period);
so to calculate the expiry clock(remaining duration) the remaining date for the two dates: is 0.39 in months, and 12 in days. but whats the excel formula for them?

The excel sheet is attached in this post, you can insert the formula in the sheet or in the post here.

Problem: An auto update formula for today's date (in Y/M/D , 3 cell format)

2. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

Without seeing your workbook, this is probably what you want...
=IF(DATEDIF(A1,B1,"y")=0,"",DATEDIF(A1,B1,"y")&" years ")&IF(DATEDIF(A1,B1,"ym")=0,"",DATEDIF(A1,B1,"ym")&" months ")&DATEDIF(A1,B1,"md")&" days"

3. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Hi,

I think the formula you gave me is incorrect, because for each date, it is separated into 3 columns, Y/M/D. (A1,B1,C1) instead of combine all together(2/20/2014) in one cell A1.

PLEASE ALSO NOTE*( THE MEMBERSHIP LIMIT IS 3 YEARS, SO maybe there is a =3-(formula), to indicate that )

I dont see any button that allow me to upload the workbook.

Originally Posted by FDibbins
Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

Without seeing your workbook, this is probably what you want...
=IF(DATEDIF(A1,B1,"y")=0,"",DATEDIF(A1,B1,"y")&" years ")&IF(DATEDIF(A1,B1,"ym")=0,"",DATEDIF(A1,B1,"ym")&" months ")&DATEDIF(A1,B1,"md")&" days"

4. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

It's hard to rush anything when you have to recreate the whole thing from scratch, but here is what I got:

=DATEDIF(DATE(\$C\$5,\$D\$5,\$E\$5),DATE(\$C\$5,D7,E7),"ym") and copied down

I'm not sure what you mean by decimal days. You don't have any hours included, so no difference would show a fraction of a day.

Maybe you meant a fraction of a month? You could approximate a day:month fraction with this:

=DATEDIF(DATE(\$C\$5,\$D\$5,\$E\$5),DATE(\$C\$5,D7,E7),"ym")+(DATEDIF(DATE(\$C\$5,\$D\$5,\$E\$5),DATE(\$C\$5,D7,E7),"md")*12/365.25)

You can upload a sample by going to Go Advanced, scroll to the bottom, click manage attachments, and browse to your file and upload it.

5. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

That formula is based on dates being in 1 cell (which is where a real date should be)

To attach a file to your post,
click advanced (next to quick post),
scroll down until you see "manage file",
click that and select "add files" (top right corner).
click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

Once the upload is completed the file name will appear below the input boxes in this window.
You can then close the window to return to the new post screen.

6. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Hi, the file is uploaded in my post!

can you review, and give me the correct formula! Thank you!

Originally Posted by FDibbins
That formula is based on dates being in 1 cell (which is where a real date should be)

To attach a file to your post,
click advanced (next to quick post),
scroll down until you see "manage file",
click that and select "add files" (top right corner).
click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

Once the upload is completed the file name will appear below the input boxes in this window.
You can then close the window to return to the new post screen.

7. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Hi, the file is uploaded in my post! "Book1 xlsx"

can you review, and give me the correct formula! Thank you!

8. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

I dont know why ??? the attachments are not able to access..

9. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

I am sorry, I was editing it, you can try to open it now!

Originally Posted by satabp
I dont know why ??? the attachments are not able to access..

11. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

For days until expiry I think you can use this formula

=DATE(B10+3,C10,D10)-DATE(A\$3,B\$3,C\$3)

That gives 11 for your example

I don't know how you get 0.39, why that amount - what are the expected results for the other rows?

12. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

thank you,

If with the rule of 3 years membership, (2011/3/4-2014/3/04, membership ends)and we count the days left from 2014/2/21 - 2014/3/4, it is 12 days left in the membership.

And if i convert 12 days to months, its 0.39 months.(using an online calculator)

why is it 11 days using your formula?

For days until expiry I think you can use this formula

=DATE(B10+3,C10,D10)-DATE(A\$3,B\$3,C\$3)

That gives 11 for your example

I don't know how you get 0.39, why that amount - what are the expected results for the other rows?

13. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Hi,

thank you.

If with the rule of 3 years membership, (membership period is 2011/3/4-2014/3/04)and if we count today's date (2014/2/21) - contract end date (2014/3/4), it is 12 days left in the membership.

And if i convert 12 days to months, its 0.39 months.(using an online calculator)

Originally Posted by satabp

14. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Originally Posted by xcfeng95
And if i convert 12 days to months, its 0.39 months.(using an online calculator)
Clearly months have a variable number of days so there is no "correct" way to convert days to a decimal number of months, it depends how you decide to do the calculation, you can treat a month as 30 days or use some other method

Originally Posted by xcfeng95
why is it 11 days using your formula?
How many days is it from today until tomorrow? - You might say one day, but if you count both today and tomorrow you would say 2, so presumably you are counting both today and the expiry date - in which case you can just use +1 on the end of my suggested formula.

15. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

can you also give me the formula in months

16. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

Yes, thats great, I added it.

How can I convert this "day data" to months unit?

17. Re: find time left in month.days unit between two dates(in YEAR.MONTH.DAY)

I'm not sure what you want the results to be. If you divide 12 by 30 you'll get 0.4, so I'm assuming the divisor used is something like 365/12 so try

=(DATE(B10+3,C10,D10)-DATE(A\$3,B\$3,C\$3)+1)/365*12

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1