loke,
@loke@functional.cafe avatar

Perhaps a weird request

Does anyone have a real-life example of a seemingly complicated Excel formula?

The background is that I'm writing a blog post that talks about spreadsheets, and I want an example that shows that formulas can be just as complex as any programming language (my point is that it'll be even more so in Excel, since there isn't much in the way of formatting).

If you have an example to share, I'd love to see it. I would prefer to include a real-life example rather than something contrived.

RBH7s,

@loke
I found NOAA_Solar_Calculations_day.xls from https://gml.noaa.gov › grad › solcalc › NOAA_Solar_Calculations_day.xls to be very complex.

loke,
@loke@functional.cafe avatar

@RBH7s Thank you. That's some monster.

How would someone ensure that the formula in cell AH13 is correct:

=IF(AC13>0,MOD(DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13)))))+180,360),MOD(540-DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13))))),360))<br></br>

That is, do they conform to the pattern of all the other cells in column AH?

How to you even prove that?

loke,
@loke@functional.cafe avatar

@RBH7s Thank you. That's some monster.

How would someone ensure that the formula in cell AH13 is correct:

=IF(AC13>0,MOD(DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13)))))+180,360),MOD(540-DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13))))),360))<br></br>

That is, do they conform to the pattern of all the other cells in column AH?

How would you even prove that?

loke,
@loke@functional.cafe avatar

@RBH7s Thank you. That's some monster.

How would someone ensure that the formula in cell AH13 is correct:

=IF(AC13>0,MOD(DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13)))))+180,360),MOD(540-DEGREES(ACOS(((SIN(RADIANS($B$3))*COS(RADIANS(AD13)))-SIN(RADIANS(T13)))/(COS(RADIANS($B$3))*SIN(RADIANS(AD13))))),360))<br></br>

That is, do they conform to the pattern of all the other cells in column AH?

How would you even prove that? Does Excel have any tools to help with that?

vatine,
@vatine@mendeddrum.org avatar

@loke I don't have it at hand, and I only saw it at a distance, but I know of at least one spreadsheet that existed in the mid-90s for feeding in some characteristics (length, width, I dunno) of a fast sailing boat, and get out all the dimensions needed for the blueprint.

I have also heard wild rumours about the spreadsheets used by some financial traders.

sgf,
@sgf@mastodon.xyz avatar

@vatine @loke I've worked adjacent to such financial spreadsheets: Risk-managed billions in exotic equity derivatives via spreadsheets with custom plugins to call out to compute grid, dozens of tabs laid out with financial maths. Overnight risk calculations were VBA to tweak inputs and recalc sheet (simulated annealing of input tweak order to minimise recalc cost). Custom allocator to stop Excel memory fragmentation in 2G address space.

A fully-fledged, complex program in a RAD environment.

loke,
@loke@functional.cafe avatar

@sgf @vatine My day job is with finance software, and I have seen some interesting ways in which numbers are calculated. 🙂

We try to help people do things better and more reliable, but a lot of people sure love their spreadsheets.

jannem,
@jannem@fosstodon.org avatar

@loke
I once studied an instrumental conditioning model of animal behavior implemented as an Mac Excel spreadsheet (it turned out to rely on a bug in that old Mac-specific version; it was not a good model).

But while the model was complex the complexity was spread out; individual cells weren't that long or complicated. I suspect that is often the case.

loke,
@loke@functional.cafe avatar

@jannem Yes. That's part of the problem I want to highlight, but it's harder to show such complexity compared to a single expression in a single cell.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines