Selcting best 8 weights and adding up in lbs and oz's

glenws

New Member
Joined
Apr 14, 2010
Messages
7
Hey hope someone can help

I have a very limited knowledge of macro and the developer section but here is what i am trying to achieve.

My dad runs a series of fishing matches thorughout the year and wants to create a leaderboard after each match.

It is a total of 12 matches with each anglers best eight weight cathces counting toward the total weight series.

I am trying to achieve something like below with the best 8 weight series calculated in lbs & oz

Untitled-2.jpg


as an example 5.12 is 5lb 2oz

So i guess i need a formula or macro that selects the 8 highest weights then adds them up with an equation that every 16 oz = 1lb.

so for example currently if i added 5.12 + 51.02 + 23.04 excel will give a total of 79.18. adding these together in lb and ozs actually gives 80lb 2oz

Hope the above makes sense what i am trying to achieve and hope someone can help

Cheers Glen
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
B2 formula:

=LARGE(C2:N2,1)+LARGE(C2:N2,2)+LARGE(C2:N2,3)+LARGE(C2:N2,4)+LARGE(C2:N2,5)+LARGE(C2:N2,6)+LARGE(C2:N2,7)+LARGE(C2:N2,8)

will give you total of 8 highest weights.
 
Upvote 0
Not an answer to your question but are you sure that 5.12 is 5lb 2oz and not 5lb 12oz? I notice that the highest decimal value in your table is .15 and there are 16 ounces in a pound.

Can you please post your actual data rather than an image so we can copy/paste rather than typing it.
 
Upvote 0
B2 formula:

=LARGE(C2:N2,1)+LARGE(C2:N2,2)+LARGE(C2:N2,3)+LARGE(C2:N2,4)+LARGE(C2:N2,5)+LARGE(C2:N2,6)+LARGE(C2:N2,7)+LARGE(C2:N2,8)

will give you total of 8 highest weights.

Another (shorter) way of writing this would be:

Code:
=SUM(LARGE(C2:N2,ROW(INDIRECT("1:8"))))

Array entered, i.e. with CTRL+SHIFT+ENTER.

As per Andrew's point though, it's important we understand how the values are written in order to provide a workable solution.

Matty
 
Upvote 0
Untested (and ugly), but enter it with ctrl +shift +enter :

=(QUOTIENT(SUM(100*(LARGE(C2:N2,ROW(1:8))-INT(LARGE(C2:N2,ROW(1:8))))) ,16)+SUM(INT(LARGE(C2:N2,ROW(1:8)))))&" lbs. "&MOD(SUM(100*(LARGE(C2:N2,ROW(1:8))-INT(LARGE(C2:N2,ROW(1:8))))),16)&"oz."
 
Last edited:
Upvote 0
Thanks Matty,

Can you explain the workings of INDIRECT("1:8") within the array formula? I can't quite get my head round it.

John
 
Upvote 0
He's storing the ounces as the decimal , therefore 5.12 would be 5 lb 12 oz.

The quickest way without writing a macro would be to convert to ounces in the row below

Populate C3 - N3 with this formula:
=(INT(C2)*16)+((C2-INT(C2))*100)

Then write in another cell:
=(sumproduct(large(C3:N3,row(1:8)))) / 16

The answer will be in lb's.
 
Upvote 0
Formula in B2 copied down:


Excel 2010
ABCDEFGHIJKLMN
1NameBest 8Match1Match2Match3Match4Match5Match6Match7Match8Match9Match10Match11Match12
2Angler1120.065.1251.0223.041.08014.1213.084.083.123.1201.08
3Angler2103.14.1212.0923.156.089.013.0822.079.05004.0215.01
4Angler380.025.1251.0223.04000000000
Sheet1
Cell Formulas
RangeFormula
B2=DOLLARFR(SUMPRODUCT(DOLLARDE(LARGE(C2:N2,ROW(INDIRECT("1:8"))),16)),16)
 
Upvote 0
Thanks Matty,

Can you explain the workings of INDIRECT("1:8") within the array formula? I can't quite get my head round it.

John

In fact, the INDIRECT call is superfluous. This will also work for picking out the 8 largest values:

Code:
=SUM(LARGE(C2:N2,ROW(1:8)))

Again, array entered.

That's not to say this solution will deliver what the OP needs, however.

Matty
 
Upvote 0
Thanks for the quick response guys. Andrew this formula will save my dad so much time!! Thanks again
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,189
Members
449,090
Latest member
bes000

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