Formula to change 'Stones - Pounds' to Pounds?

papillon

Board Regular
Joined
Oct 14, 2002
Messages
88
Hi All,
Does anyone know of a formula to change imperial stones and pounds to just pounds eg 13 stones 3 lbs = 185lbs ? (14 pounds to a stone)
Thanks,
papillon
 
Hi just_jon,
Yes, I'm afraid it does, but it's not the end of the world,
thanks,
papillon
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
just_jon,

looks like i took the long way to get to the same solution as you did...only because i didn't know how to translate the int() function into french.

nice work.

papillon,

care to send me the spreadsheet? i might be able to plug in the formula for you, if you show me which cells you want it in.

pls make sure no confidential info is included in the spreadsheet

sqrob
 
Upvote 0
Just_Jon's solution above works well, exactly as you want I think, but the complication is caued by the fact that you are using the decimal point for entry purposes when it isn't really a decimal...

If you could enter the lbs in a different row the calculation is easy to understand...
weight 2004.xls
ABCDEF
2DateStoneslbsStonesasDec.TotallbsKilos
3Thu1Apr0416116.07225102.06
Apr


Regards,

Simsy
 
Upvote 0
Hi Just_Jon,

The problem with your first solution is when trying to deal with 2 decimal digits like 8.12 for example.

Your first solution will give 113.2 instead of =8*14+12=124

Second solution is OK

Eli
 
Upvote 0
Actually I hadn't written either one =and obviously, did not thoroughly test either one :unsure: ] -- this seems to fix the one, though --

=INT(A2)*14 + IF(INT(A2)<>A2,(A2-INT(A2))*10^(LEN(A2)-FIND(".",A2)))
 
Upvote 0
just_jon,eliW,simsy & sqrob,
Thank you so much for all the effort you have put into solving my little problem.
That last formula from just_jon works a treat! You guys are just amazing!
Thanks again,
papillon
 
Upvote 0
As an example, this start with the number 621.12 in cell A1

=A1-INT(A1) = .12

=CHOOSE(LEN(A1)-LEN(INT(A1))-1,10,100,1000) = 100
The above finds the length of the decimal portion in order to turn it into a whole number.


Multiply the two above to arrive at 12

Now all you need to do is multiply the integer of A1 to 14 to get (631*14) = 8834

Finally, put it all together to get:

=CHOOSE(LEN(A1)-LEN(INT(A1))-1,10,100,1000)*(A1-INT(A1))+(INT(A1)*14)

for a total of 8846

One problem, if any particular data cell does not contain a decimal value, this will fail.
 
Upvote 0
Late to the fray, but perhaps simpler:
MrE4014.xls
ABCD
1StonesPounds
29126
312.4172
41231722
511.4158
6621.128706
7-12.4-172
8-3.11-53
9631.128846
1017.15253
110.1111
Sheet7


Formulas:

B2: =TRUNC(A2)*14+REPLACE(A2&".0",1,FIND(".",A2&".0"),"")
B7: =TRUNC(A7)*14+SIGN(A7)*REPLACE(A7&".0",1,FIND(".",A7&".0"),"")

This latter formula will handle negative (& positive) conversions . . .
 
Upvote 0

Forum statistics

Threads
1,215,832
Messages
6,127,151
Members
449,366
Latest member
reidel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top