#1   Report Post  
rcolmansr60
 
Posts: n/a
Default Cell formatting


How do I format a cell for feet-inches, where the inches may be whole
number with a fraction? Like 9'-7 3/8"
Dick


--
rcolmansr60
------------------------------------------------------------------------
rcolmansr60's Profile: http://www.excelforum.com/member.php...o&userid=26731
View this thread: http://www.excelforum.com/showthread...hreadid=399867

  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

Let's say that cell A1 contains a length in feet: 12.1 then in cell B1 put:

=INT(A1)&"' "&INT(12*(A1-INT(A1)))&""" "&TEXT(MOD(12*(A1-INT(A1)),1),"##/##")

which will display as 12" 1" 1/5

If you need the reverse, put the feet and inches into separate cells to make
the math easier
--
Gary's Student


"rcolmansr60" wrote:


How do I format a cell for feet-inches, where the inches may be whole
number with a fraction? Like 9'-7 3/8"
Dick


--
rcolmansr60
------------------------------------------------------------------------
rcolmansr60's Profile: http://www.excelforum.com/member.php...o&userid=26731
View this thread: http://www.excelforum.com/showthread...hreadid=399867


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
Conditional formatting a full row triggered by a single cell reference... neilcarden Excel Worksheet Functions 1 August 17th 05 02:59 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Formatting dates in the future Compass Rose Excel Worksheet Functions 3 January 17th 05 10:39 PM
Cell Formatting jmaulsby Excel Discussion (Misc queries) 1 December 9th 04 03:25 PM


All times are GMT +1. The time now is 10:14 PM.

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

About Us

"It's about Microsoft Excel"