Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default SPECIAL NUMBER FORMAT

I have come upto the custom format:

# "Years and " ?/12 "Months"

so as to represent

33.43189596
as
33 Years and 5/12 Months

However, any idea for modification of the same thus enabling me to reflect
the same without "/12" i.e. like:

33 Years and 5 Months
--
Thanx in advance,
Best Regards,

Faraz
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default SPECIAL NUMBER FORMAT

with your value in A1, try:

=ROUNDDOWN(A1,0) &" years "& ROUNDDOWN(MOD(A1,1)*12,0) & " months"

--
Gary''s Student - gsnu201001


"Faraz A. Qureshi" wrote:

I have come upto the custom format:

# "Years and " ?/12 "Months"

so as to represent

33.43189596
as
33 Years and 5/12 Months

However, any idea for modification of the same thus enabling me to reflect
the same without "/12" i.e. like:

33 Years and 5 Months
--
Thanx in advance,
Best Regards,

Faraz

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default SPECIAL NUMBER FORMAT

Not sure if you can do all that with just a number format, but would a helper
column with a formula work?

=INT(A1)&" years and "&INT(MOD(A1,1)*12)&" months"
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Faraz A. Qureshi" wrote:

I have come upto the custom format:

# "Years and " ?/12 "Months"

so as to represent

33.43189596
as
33 Years and 5/12 Months

However, any idea for modification of the same thus enabling me to reflect
the same without "/12" i.e. like:

33 Years and 5 Months
--
Thanx in advance,
Best Regards,

Faraz

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003. Custom format gets replaced by Special format. jasper New Users to Excel 0 September 1st 08 04:46 AM
Special Cell Format Spymann Excel Discussion (Misc queries) 9 February 3rd 07 03:49 PM
Format Paste Special - is there a way to do this ? SteveW New Users to Excel 2 August 20th 06 08:51 PM
excel data label format special number characters (part 2) todd Excel Discussion (Misc queries) 1 May 4th 05 05:08 PM
excel data label format special number characters todd Excel Discussion (Misc queries) 0 May 4th 05 02:30 PM


All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"