how to convert days to months, months to years ?

inspectoRQ

New Member
Joined
Jun 15, 2011
Messages
38
hello everyone,
Our worker works 15 years, 11 months, and 65 days. I want to convert them like 16 years,1
months, and 5 days. Because 65 days is 2 months and 5 days. I added it to 11 months. so it equals 1 year and 1 month. So the result is 16 years,1 month and 5 days.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi inspecto,

Question - Do you happen to have the employees' start dates on file? If so, you can use a couple of different methods to track how long they've worked based upon the start date and a given date (like today)

Example of my data:

1627393535748.png


Formulas:

Year column: =YEAR(TODAY()) - YEAR(B2)
Month column: =IF(MONTH(TODAY())<MONTH(B2), 12-MONTH(B2) + MONTH(TODAY()), MONTH(TODAY())-MONTH(B2))
Days column: =IF(DAY(B2)>DAY(TODAY()), 31-DAY(B2)+DAY(TODAY()), DAY(TODAY())-DAY(B2))
 
Upvote 0
Solutions 20210722.001.xlsm
ABCDE
1
2YearsMonthsDays
3Source151165
4Result1615
Sheet2
Cell Formulas
RangeFormula
C4C4=C3+ROUNDDOWN((ROUNDDOWN((E3/30),0)+D3)/12,0)
D4D4=IF(ROUNDDOWN(E3/30,0)>0,IF(D3+ROUNDDOWN(E3/30,0)>=12,MOD(D3+ROUNDDOWN(E3/30,0),12),D3+ROUNDDOWN(E3/30,0)),IF(D3>=12,MOD(D3,12),D3))
E4E4=IF(E3>=30,MOD(E3,30),E3)
 
Upvote 0
Solution
First of all, thank you so much for sparing time for me. I solved the problem like in added pic.
 

Attachments

  • 1.jpg
    1.jpg
    47.7 KB · Views: 19
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top