Converting lb AND oz from one cell to grams in another

HVHCEXCEL

New Member
Joined
Sep 24, 2015
Messages
3
Hi everybody,

I'm new to this forum and excel for that matter and have been going crazy trying to figure something out that's probably very simple. I have a column with a bunch of birthweights in the following form "7 lb 1.1 oz" and would like to convert it in another cell into grams (i.e. 7 lb 1.1 oz --> 3205 grams). Any help would be greatly appreciated.

Thanks!
 

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.
If you had: 7 in A1
& 1.1 in A2
& Total them in A3



=CONVERT(A1,"lbm","g")
=CONVERT(A2,"ozm","g")
=SUM(A1:A2)

3175.14659
31.18447544

<colgroup><col width="118"></colgroup><tbody>
</tbody>
3206.331065

<colgroup><col style="mso-width-source:userset;mso-width-alt:4209;width:89pt" width="118"> </colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0
Thanks for your reply. Do you know if there is a way to do this if the lb and oz is in the same cell (i.e. "7 lb 1.1 oz" in A1)?
 
Upvote 0
You would need to split the cell into multiple columns to make it work. As shown in your example you have a string (text) field and will need to have two numerical fields to make it happen. You can split the cell using the Excel built in function Text to columns delimited on space.
 
Upvote 0
Welcome to the MrExcel Forum.
Excel Workbook
AB
27 lb 1.1 oz3206.33017
37 lb 1.1 oz3206.33017
HVHEXCEL
Excel 2007
Cell Formulas
RangeFormula
B2=CONVERT(LEFT(A2,FIND("lb",A2)-1)*16+MID(A2,FIND("lb",A2)+2,FIND("oz",A2)-1-FIND("lb",A2)-2)+0,"ozm","g")
B3=CONVERT(TRIM(LEFT(SUBSTITUTE(A3," ",REPT(" ",4)),4))*16+TRIM(MID(SUBSTITUTE(A3," ",REPT(" ",4)),10,8)),"ozm","g")


hth
 
Upvote 0
Thanks, that is one heck of a formula but it works like a charm! Glad there's people like you to help out with this!
 
Upvote 0
Thanks for the feedback.

Pleased to have helped solve your problem.

Good luck with your project.
 
Upvote 0

Forum statistics

Threads
1,216,489
Messages
6,130,959
Members
449,608
Latest member
jacobmudombe

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