PC Review


Reply
Thread Tools Rate Thread

How do I format a cell in feet?

 
 
Ted M.
Guest
Posts: n/a
 
      23rd Feb 2009
How can I format a cell so that when I enter 12.5 it shows 12'6"? I am
trying to do this so in another cell I can multiply the length by another
number.
 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      23rd Feb 2009
You can use this formula to convert the value 12'6"" to the numeric value
12.6 in another cell...

=--SUBSTITUTE(SUBSTITUTE(A1,"'","."),"""","")

or you can use this...

SUBSTITUTE(SUBSTITUTE(A1,"'","."),"""","")

directly in a calculation involving other numeric values (no double unary is
required under this circumstance). You don't show any spaces between the
foot-mark and the number of inches; however, if that could occur, then you
would need to remove it. That can be done by adding another SUBSTITUTE
function call...

=--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"'","."),"""","")," ","")

--
Rick (MVP - Excel)


"Ted M." <Ted M.@discussions.microsoft.com> wrote in message
news:ADDD42BA-37AD-4CC4-AC77-(E-Mail Removed)...
> How can I format a cell so that when I enter 12.5 it shows 12'6"? I am
> trying to do this so in another cell I can multiply the length by another
> number.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format cell to show numbers as feet =?Utf-8?B?U2FuZG1hbkxvZ2Fu?= Microsoft Excel Misc 1 3rd Apr 2007 11:36 PM
How do I set a cell format for Feet and Inches? i.e. 3'-10 1/2" =?Utf-8?B?SkI=?= Microsoft Excel Misc 1 28th Feb 2006 11:58 PM
Special format for feet - inches in a cell =?Utf-8?B?Qm90aGVsbCBKb2hu?= Microsoft Excel Misc 1 8th Sep 2005 12:28 AM
How can I format a cell to accept feet and inches and add them =?Utf-8?B?SmFjaw==?= Microsoft Excel Worksheet Functions 4 4th Nov 2004 12:30 AM
How do I set cell format for feet, inches, & fractions of inches? =?Utf-8?B?c3RldmUtYg==?= Microsoft Excel Worksheet Functions 3 30th Sep 2004 12:27 AM


Features
 

Advertising
 

Newsgroups
 


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