Fishing Again Pounds and Ounces

Raively

New Member
Joined
Jul 21, 2008
Messages
32
Hello all,

Where we go again. I've searched the site to find something to help me out but just don't see it...

This is what I need..

In C16 I have 7.8(which is 7pounds and 8oz's)
In D16 I have 8.9
In E16 I have 3.10

And so on and so on.

In M16 in I would like the total for C16-L16 to read 19.11
So basically when it adds the row up every 16oz converts to a pound.
Then the total in M16.
After reading some of the post if you can make M16 read 19lbs 11oz, That would be great but I know theres more work involed to do that.If not 19.11 will work for me..

Thanks for all the help.
Bob
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Enter the following formula, and confirm it with Control + Shift + Enter (not just enter).

=TRUNC(SUM(TRUNC(C16:E16)*16, (C16:E16 - TRUNC(C16:E16))*10) / 16) & "lbs " & MOD(SUM(TRUNC(C16:E16)*16, (C16:E16 - TRUNC(C16:E16))*10), 16) & "oz"
 
Upvote 0
UniMord,

I have been messing around with this for a few minutes, and saw your reply.
It looks pretty close, but it appears to be a little off. It appears to be returning "19 lbs 2 oz" instead of "19 lbs 11 oz".
 
Upvote 0
I believe my numbers are correct. Let's add them up.

7lbs + 8lbs + 3lbs = 18lbs
8oz + 9oz + 1oz =18oz = 1lb 2oz
18lbs. + 1lb 2oz = 19lbs 2oz
 
Last edited:
Upvote 0
Give this a try.

=SUMPRODUCT(LEFT(C16:E16,FIND(".",C16:E16,1)-1)*1)+INT(SUMPRODUCT(MID(C16:E16,FIND(".",C16:E16,1)+1,99999)*1)/16)&" LBS "&MOD(SUMPRODUCT(MID(C16:E16,FIND(".",C16:E16,1)+1,99999)*1),16)&" OZ"
 
Upvote 0
Thank you, I will give it a try.

And 8oz + 9oz + 1oz =18oz = 1lb 2oz

This was 8oz + 9oz + 10oz would = 1lb 11oz.

Let me try this will be right back. Thanks
 
Upvote 0
I believe my numbers are correct. Let's add them up.

7lbs + 8lbs + 3lbs = 18lbs
8oz + 9oz + 1oz =18oz = 1lb 2oz
18lbs. + 1lb 2oz = 19lbs 2oz
I think I see the problem.

In the original problem, it looks like he intended 3.10 to represent 3 lbs 10 oz, but it looks like you are treating it as 3 lbs 1 oz.
 
Upvote 0
UniMord I tried to copy and paste you formula in and I get #### in the cell.

mmyett copied and pasted your formula in and it worked to a degree.

Heres my next question I see what UniMord was talking about 3.1 should be 3.10 do I have to format the cell to something so it will read 3.10? and does the total have to be formated to also read right??

Thanks

Bob
 
Upvote 0
Yeah, the differentiation between 3.1 and 3.10 is going to cause a lot of problems.

I worked on a worksheet function to do the calculations as an alternative to large formulas using the following syntax:

=Lboz(C16:L16)

Code:
Function LbOz(rng As Range)
Dim pounds As Integer
Dim ounces As Integer
 
pounds = 0
ounces = 0
 
For Each cell In rng
    ounces = ounces + Right(cell, Len(cell) - InStr(cell, "."))
    pounds = pounds + Int(cell.Value)
Next cell
 
pounds = pounds + Int(ounces / 16)
ounces = ounces - Int(ounces / 16) * 16
 
LbOz = (pounds & "." & ounces) * 1
 
End Function
 
Upvote 0
mmyett copied and pasted your formula in and it worked to a degree.

To what degree? Yes the cells being worked on should be formatted as text to preserve the trailing zeros.

It is working fine here.
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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