Rounding off decimals

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
How to round off 19 years 2 months to 19 years, 19 years 3 months 20 days to 19 years 3 months, 19 years 6 months 6 days to 19 years 6 moths and 19 years 9 days 20 days to 20 years in excel?
 
Last edited:
[table="width: 1156"]
<tbody>[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td]col k[/td]
[td]col l[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td]start date[/td]
[td]servdays[/td]
[td]intmonths[/td]
[td]intmonths-3[/td]
[td]intyears[/td]
[td]months[/td]
[td]service[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]01/11/2015[/td]
[td="align: Right"]1153[/td]
[td="align: Right"]37[/td]
[td="align: Right"]34[/td]
[td="align: Right"]2[/td]
[td="align: Right"]10[/td]
[td]2 years 9 months[/td]
[td][/td]
[td]mytable[/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]04/08/2015[/td]
[td="align: Right"]1242[/td]
[td="align: Right"]40[/td]
[td="align: Right"]37[/td]
[td="align: Right"]3[/td]
[td="align: Right"]1[/td]
[td]3 years 0 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]07/05/2015[/td]
[td="align: Right"]1331[/td]
[td="align: Right"]43[/td]
[td="align: Right"]40[/td]
[td="align: Right"]3[/td]
[td="align: Right"]4[/td]
[td]3 years 3 months[/td]
[td][/td]
[td="align: Right"]0[/td]
[td="align: Right"]0[/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]07/02/2015[/td]
[td="align: Right"]1420[/td]
[td="align: Right"]46[/td]
[td="align: Right"]43[/td]
[td="align: Right"]3[/td]
[td="align: Right"]7[/td]
[td]3 years 6 months[/td]
[td][/td]
[td="align: Right"]3[/td]
[td="align: Right"]3[/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]10/11/2014[/td]
[td="align: Right"]1509[/td]
[td="align: Right"]49[/td]
[td="align: Right"]46[/td]
[td="align: Right"]3[/td]
[td="align: Right"]10[/td]
[td]3 years 9 months[/td]
[td][/td]
[td="align: Right"]6[/td]
[td="align: Right"]6[/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]13/08/2014[/td]
[td="align: Right"]1598[/td]
[td="align: Right"]52[/td]
[td="align: Right"]49[/td]
[td="align: Right"]4[/td]
[td="align: Right"]1[/td]
[td]4 years 0 months[/td]
[td][/td]
[td="align: Right"]9[/td]
[td="align: Right"]9[/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]16/05/2014[/td]
[td="align: Right"]1687[/td]
[td="align: Right"]55[/td]
[td="align: Right"]52[/td]
[td="align: Right"]4[/td]
[td="align: Right"]4[/td]
[td]4 years 3 months[/td]
[td][/td]
[td="align: Right"]12[/td]
[td="align: Right"]9[/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]16/02/2014[/td]
[td="align: Right"]1776[/td]
[td="align: Right"]58[/td]
[td="align: Right"]55[/td]
[td="align: Right"]4[/td]
[td="align: Right"]7[/td]
[td]4 years 6 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]19/11/2013[/td]
[td="align: Right"]1865[/td]
[td="align: Right"]61[/td]
[td="align: Right"]58[/td]
[td="align: Right"]4[/td]
[td="align: Right"]10[/td]
[td]4 years 9 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]22/08/2013[/td]
[td="align: Right"]1954[/td]
[td="align: Right"]64[/td]
[td="align: Right"]61[/td]
[td="align: Right"]5[/td]
[td="align: Right"]1[/td]
[td]5 years 0 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]25/05/2013[/td]
[td="align: Right"]2043[/td]
[td="align: Right"]67[/td]
[td="align: Right"]64[/td]
[td="align: Right"]5[/td]
[td="align: Right"]4[/td]
[td]5 years 3 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]25/02/2013[/td]
[td="align: Right"]2132[/td]
[td="align: Right"]70[/td]
[td="align: Right"]67[/td]
[td="align: Right"]5[/td]
[td="align: Right"]7[/td]
[td]5 years 6 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]28/11/2012[/td]
[td="align: Right"]2221[/td]
[td="align: Right"]72[/td]
[td="align: Right"]69[/td]
[td="align: Right"]5[/td]
[td="align: Right"]9[/td]
[td]5 years 9 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td="align: Right"]31/08/2012[/td]
[td="align: Right"]2310[/td]
[td="align: Right"]75[/td]
[td="align: Right"]72[/td]
[td="align: Right"]6[/td]
[td="align: Right"]0[/td]
[td]6 years 0 months[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td="colspan: 2"]assumptions[/td]
[td]a month is[/td]
[td="align: Right"]30.4375[/td]
[td]days[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td="colspan: 3"]m5 (2 years 9 months)[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td="colspan: 5"]=k5&" years " &vlookup(l5,mytable,2)&" months"[/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
</tbody>[/table]

please show the formula you have used......
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I gave you the main formula - days is today minus start date - intmonths is the integer of days divided by 30.4375 - int years is days elapsed divided by 365.25 - months is intmonths minus 3 MINUS intyears times 12
 
Upvote 0
I gave you the main formula - days is today minus start date - intmonths is the integer of days divided by 30.4375 - int years is days elapsed divided by 365.25 - months is intmonths minus 3 MINUS intyears times 12
Then what about service?
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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