Find largest total when multiplying x and y

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
677
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I am looking to calculate something in a formula that is pretty easy by looking at a visual representation, as per the image below:

Screenshot 2022-08-15 at 16.06.18.png


What I want to do is find the largest rectangle / square total (at least 2 values for both x and y). However, I am struggling. This is easy from the visual as I can just do a visual and use a process of elimination to find the largest area.

I have found that my result is 30. i.e. I have done 2 events 15 times each (2x15 at Newport and Riverfront), which is greater than all of the other combinations:
6x3 (=18)
3x6 (=18)
2x8 (=16).

I am just trying to figure out how I could do this in a formula, please?

I have attached an image (below) of the original post in a facebook group about parkrun challenges, which gives the initial explanation:

problem.jpg


Link to file (small and opens quickly): Largest x x y.xlsx

Thanks in advance!

Olly.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=LET(f,SORT(FILTER(B4#,B4#>1),,-1),r,ROWS(f),MAX(INDEX(f*SEQUENCE(r),SEQUENCE(r-1,,2))))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

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