Best formula for required result

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
155
Office Version
  1. 2021
Platform
  1. Windows
Hi, I'm looking for the best formula to achieve the required result.

I've made a simple mock up. What I want is a formula in D11 to find the highest score of handicappers 18 and under. Then in D12 the highest score of handicappers 19+. If possible if there are more than one winner in each category, I'd like a return of zero or "".

Many thanks.
 

Attachments

  • sAMPLE.JPG
    sAMPLE.JPG
    16.8 KB · Views: 5
Not as far as I am aware.

What is in the C column are rounded figures so in C15 the formula is =ROUND(Handicaps!J15,0)

In the E column there is a formula to work out the points scored once the amount of shots are entered in an adjacent column. So in E15 its =IF(D15="","",MAX(2+E$2-D15+(E$3<=C15)*1+(E$3<=(C15-18))*1+(E$3<=(C15-36))*1,0))

It either of these causing the problem?

Column C format is number

Column E format is general.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Those should not cause a problem, but they will return incorrect results, so it would need to be
Excel Formula:
=LET(f,SORT(FILTER(' Master'!B4:E61,(' Master'!C4:C61<=18)*(' Master'!E4:E61<>"")),4,-1),p,INDEX(f,,4),IF(LARGE(p,1)=LARGE(p,2),"",INDEX(f,1,1)))
 
Upvote 0
That brought up an error I've never seen before, #CALC!

Something about an empty array. I quickly put some figures in but it didn't remove the error.

The problem with handicaps is that although they are exact they are always rounded up or down.
 
Upvote 0
In that case can you post some sample data that shows the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
I downloaded that and it disappeared, I couldn't find it. I can try again.

I evaluated your formula and it said the problem was in C column. (Empty array) I removed the rounding but that didn't solve it.
 
Upvote 0
If you format col C as dates, what do you see?
 
Upvote 0
Ok, so they are real numbers. You are doing this in Excel rather than Google sheets or some other software?
 
Upvote 0
Excel.

I used to do this quite easily, we have a prize for whoever does the best on each hole (points score), but you have to beat everybody else so its not won that often. The way I did it was I looked for the maximum points number, then saw if it only occurred once. If it did, that person won. At least years AGM they voted that their should be two competitions, 1 for high and 1 for low handicappers. So now I'm stuck as I'm now looking for 2 highest scores, one from each criteria.
 
Upvote 0
In that case I need to see your data to figure out why it isn't working.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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