View Single Post
  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


Hi James.

First, Cond. Formatting will not allow you to change the Number format.
Only things like font, border and fill patterns can be set via CF.

Try this: (format your output cell as General)

=IF((A1-NOW())/365<1,ROUND(((A1-NOW())/365)*12,2)&"
Months",ROUND(((A1-NOW())/365),2)&" Years")

A1=01 July 2006
Now()=19 Sept 2005
result= "9.35 Months"

Does this meet your needs?

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=468843