Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can i convert a 2 digit number of months to a four digit showing years
and months? 35 = 0211 24 = 0200 05 = 0005 I have a series of numbers containg months, like 35. I want it to come out to years and months 0211. 35 months is 2 years and 11 months. I want it to show 0211. Thanks, |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TEXT(INT(A1/12)*100+MOD(A1,12),"0000")
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "BB" wrote in message ... How can i convert a 2 digit number of months to a four digit showing years and months? 35 = 0211 24 = 0200 05 = 0005 I have a series of numbers containg months, like 35. I want it to come out to years and months 0211. 35 months is 2 years and 11 months. I want it to show 0211. Thanks, |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TEXT(INT(A1/12),"00")&TEXT(MOD(A1/12,1)*12,"00")
"BB" wrote: How can i convert a 2 digit number of months to a four digit showing years and months? 35 = 0211 24 = 0200 05 = 0005 I have a series of numbers containg months, like 35. I want it to come out to years and months 0211. 35 months is 2 years and 11 months. I want it to show 0211. Thanks, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
problem of calculating years months and days | Excel Discussion (Misc queries) | |||
holiday dates | Excel Worksheet Functions | |||
convert Days to Years, Months, Days | Excel Discussion (Misc queries) | |||
how do I convert a number to number of years, months and days | Excel Worksheet Functions | |||
How do i convert years to months (formula) | Excel Worksheet Functions |