What level is the water?

Lepista

New Member
Joined
May 3, 2013
Messages
6
Friday puzzle:

There are four defined points, forming a box. The sides might not be parallel. You have the (x,y) coordinates for each corner.

The box is (x%) full.

At what level is the water (what is the 'y' position)?

Solve via excel without using macros or dynamic formulae.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Is this some sort of assignment or homework?

I would recommend finding the mathematical solution first, then apply it to Excel.
 
Upvote 0
Nope, I've done a very inelegant solution, I'd just like to see if there is a better way to do this on Excel.

With a triangle, the solution is relatively simple, however for a quadrilateral it appears to get very awkward indeed.

I found it fun to do, I thought it would be an interesting enough puzzle for others to try.
 
Upvote 0
If you could post the mathematical explanation/formulas on how to calculate it, someone may be able to help you apply it to Excel.
 
Upvote 0
I have already applied it to excel, but it's very messy. I don't want to prejudice other people thoughts about how to go about it by posting my (very poor) solution just yet, when there might be a different way to do so.
 
Upvote 0
OK, I am going to move this thread to the "General Discussion & Other Applications" forum, as it is probably more of a math question than Excel one (at least, that is the hard part).
Once a good mathematical formula is determined, translating it to Excel shouldn't be difficult.
 
Upvote 0
It's definitely not a maths problem - It's an excel issue. Ther is no "formula" for it - it's definitely about manipulation in excel.

My spoiler: My answer revolves around arranging the four corners in height order, with the caveat that there's an issue if coordinates are the same height (y coord) or the same x position.
 
Upvote 0
I disagree. Programming (in any langauge) is not magic, it is is very literal and can only do what you tell it to.
You cannot build a house without a plan (a blue print).

There is no way someone with an extensive knowledge of Excel, but none of math (mainly, trigonometry) would be able to figure this out.
You have to know what you are doing, have a "plan" in the trigonometry sense, before you can even begin to do anything in Excel regarding it.
 
Upvote 0
I agree, but the issue I had was not the maths ... OK, I'm going to give some more spoilers here, so look away if you want to play yourself:

The solution boiled down to (1) getting the coordinates arranged (just using excel "basic" formulae) from low to high, then finding the corresponding point on opposite point of the shape, then splitting the shape up into two triangles and a (simple) quadrilateral in between.

Issues I had to deal with were:
- If two points were the same height
- if the "opposite" side of the shape from the two points was on the same opposite edge
 
Upvote 0
OK, it wasn't quite clear if this was a Challenge that you already solved, and just wanted to see if others could,
or if you were just looking for a better way of doing it (in which case it might be helpful to post your solution).

The fact that you have not posted your solution leads me to believe it is a Challenge to others.
It will be interesting to see if anyone comes up with anything.
I was a math major in college, but that was a very long time ago, and I am afraid my trig skills have gotten too rusty to hazard a guess myself.
 
Upvote 0

Forum statistics

Threads
1,223,362
Messages
6,171,639
Members
452,412
Latest member
MitchAgain

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