Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
hi
How do i display 17 as 1 year 5 months, 26 months as 2 years 2months etc etc thanks for any help |
#2
![]() |
|||
|
|||
![]()
=INT(A1/12)&" years and "&MOD(A1,12)&" months."
wrote in message ... hi How do i display 17 as 1 year 5 months, 26 months as 2 years 2months etc etc thanks for any help |
#3
![]() |
|||
|
|||
![]()
One way:
=INT(A1/12) & IF(INT(A1/12)<1," years "," year ") & MOD(A1,12) & IF(MOD(A1,12)<1," months"," month") In article , wrote: hi How do i display 17 as 1 year 5 months, 26 months as 2 years 2months etc etc thanks for any help |
#4
![]() |
|||
|
|||
![]()
Hi
Thanks for your help |
#5
![]() |
|||
|
|||
![]() thanks but how can i cope with neg numbers -3 will not shows as 3 months (Pef in red font) On Fri, 07 Jan 2005 19:01:38 +0000, wrotg: hi How do i display 17 as 1 year 5 months, 26 months as 2 years 2months etc etc thanks for any help |
#6
![]() |
|||
|
|||
![]()
One way:
=INT(ABS(A1)/12) & IF(INT(ABS(A1)/12)<1," years "," year ") & MOD(ABS(A1),12) &IF(MOD(ABS(A1),12)<1," months"," month") Use conditional to make the font red if A1 is negative: CF1: Formula is =A1<0 Format: Font-Red In article , wrote: thanks but how can i cope with neg numbers -3 will not shows as 3 months (Pef in red font) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
rolling months | Excel Discussion (Misc queries) | |||
How do I set up an calculation to work out somebody's age from th. | Excel Discussion (Misc queries) | |||
Calculate due date 1 or 2 years ahead to the first of the followi. | New Users to Excel | |||
Calculate months and years | Excel Discussion (Misc queries) | |||
How do I display months and years between two dates | Excel Discussion (Misc queries) |