Find largest total when multiplying x and y

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
795
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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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