Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Cell formatting in excel

How do I format to show lb & stones eg 24lb = 1st 10lb
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Cell formatting in excel

You can't do it by cell formatting.

=INT(A1/14)&"st "&MOD(A1,14)&"lb"
--
David Biddulph

"Odyssey 62" wrote in message
...
How do I format to show lb & stones eg 24lb = 1st 10lb



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Cell formatting in excel

Hi,

I'm not sure about a format but with a number of pounds in A1 try this.

=INT(A1*0.0714286)&" St " &INT((A1*0.0714286-INT(A1*0.0714286))/0.0714286)&"
lbs"

It will start losing accuracy at around 2500000 pounds.

Mike


"Odyssey 62" wrote:

How do I format to show lb & stones eg 24lb = 1st 10lb

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Cell formatting in excel

Dividing by 14 is better than muliplying by a rough approximation to the
reciprocal.
And for the remainder after the division, MOD(A1,14) is easier than
INT((A1*0.0714286-INT(A1*0.0714286))/0.0714286)
--
David Biddulph

"Mike H" wrote in message
...
Hi,

I'm not sure about a format but with a number of pounds in A1 try this.

=INT(A1*0.0714286)&" St "
&INT((A1*0.0714286-INT(A1*0.0714286))/0.0714286)&"
lbs"

It will start losing accuracy at around 2500000 pounds.

Mike


"Odyssey 62" wrote:

How do I format to show lb & stones eg 24lb = 1st 10lb



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Cell formatting in excel

David,

When I saw your answer i couldn't believe I'd made such a simple thing so
complicated. Thanks.

Mike

"David Biddulph" wrote:

Dividing by 14 is better than muliplying by a rough approximation to the
reciprocal.
And for the remainder after the division, MOD(A1,14) is easier than
INT((A1*0.0714286-INT(A1*0.0714286))/0.0714286)
--
David Biddulph

"Mike H" wrote in message
...
Hi,

I'm not sure about a format but with a number of pounds in A1 try this.

=INT(A1*0.0714286)&" St "
&INT((A1*0.0714286-INT(A1*0.0714286))/0.0714286)&"
lbs"

It will start losing accuracy at around 2500000 pounds.

Mike


"Odyssey 62" wrote:

How do I format to show lb & stones eg 24lb = 1st 10lb




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 cell Formatting Scott Excel Worksheet Functions 1 December 5th 07 03:03 PM
Excel 2003 cell formatting Tia Setting up and Configuration of Excel 5 August 4th 07 08:47 PM
MS Excel Cell Formatting RDE Excel Worksheet Functions 3 December 22nd 05 05:49 PM
Formatting a cell crashes Excel tpw Setting up and Configuration of Excel 0 May 26th 05 03:47 PM
help with excel cell formatting Dave O. Excel Discussion (Misc queries) 4 April 15th 05 04:24 PM


All times are GMT +1. The time now is 12:51 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"