News for hackers. Stuff that matters.
Re:Excel never dies (2021) by Enginerrrd on Thursday August 04, 2022 @06:42PM (#32349235)
Ok, besides python support... The thing I'd like more than anything:

A better way to edit cell with really long function calls.

If nothing else, add color coded parenthesis to the bar at the top and not just in the cell.

Like, sometimes you just need some if/else statements... but try to parse and edit even something fairly simple like:

=IF(AND(LongExpression > 3, Other_longexpression<5),AnotherLongExpression, IF(AND(LongExpression>5,Other_longexpression<10), AnotherLongExpression, 0))

Even with the color-coded parentheses, this is really hard! And God Forbid all those "LongExpression" have a bunch of parenthesis and PEMDAS that needs to be respected.

It's... really goddamn tedious. I lost track of the parenthesis while writing that in this window ...However, if I could just have a little popout window where I could add arbitrary new/lines and spaces, that would make a difficult thing into something downright enjoyable and productive. Something like:

     =IF( 
          AND(
              LongExpression > 3,
              Other_longexpression<5
             ),
          
          AnotherLongExpression, 

          IF(
              AND(
                  LongExpression>5,
                  Other_longexpression<10
                  ),
              AnotherLongExpression,
              0
             )
        )
Would make things much easier to parse.
Re:Excel never dies (2021) by _dain_ on Saturday August 06, 2022 @02:07AM (#32365365)
Do you know about the LET function? It lets you make lexically scoped variables. And the IFS function is basically an if-elif(-elif...)-else chain, eliminating nested IF. So your example would be:

    =LET(
      foo, LongExpression,
      bar, OtherLongExpression,
      baz, AnotherLongExpression,
      bax, YetAnotherLongExpression
      IFS(
        AND(foo > 3, bar < 5), baz,
        AND(foo > 5, bar < 10), bax,
        TRUE, 0))
The formula bar can be resized and you can insert new lines with alt-enter. Sadly there's no easy way to indent, you just have to tap the spacebar (or write the formulae in Notepad++ and copypaste across like I do). Also I recommend using Lisp style "close parentheses all at the end of the line" style, rather than "Egyptian brackets".
Re:Excel never dies (2021) by Enginerrrd on Saturday August 06, 2022 @11:00AM (#32368704)
Hey, this is all incredibly helpful!

LET alone will be very helpful for all the empirical fluid mechanics formulas I have to deal with.

Thanks a lot friend!

Also, just out of curiosity, why do you recommend that particular bracket style?

Re:Excel never dies (2021) by _dain_ on Saturday August 06, 2022 @02:11PM (#32370296)
Vertical space is at a premium, no sense in having lines with nothing but a single close paren. You don't want to drag down the formula bar and start hearing the Star Wars title crawl music in your head.

It's worth checking out the big alphabetical list of formulae, there's a lot of things that many people don't know are there. Look at the ones with the "Office 365" or "2019" labels for recently added ones (although annoyingly those are icons rather than text so you can't ctrl-f):

https://support.microsoft.com/en-us/office/excel-functions-a...

Also check out my other comment in this thread about tables if you don't already know what those are all about. And Powerquery too.

Re:Excel never dies (2021) by RodgerTheGreat on Thursday August 04, 2022 @08:05PM (#32349906)
FYI, the formula bar in Excel is resizable already.

Expand the bar (or drag the vertical resize handle at its bottom edge), and then you can use alt+enter to insert a newline.

Re:Excel never dies (2021) by ant6n on Friday August 05, 2022 @09:48AM (#32356082)
It's like coding in an adversarial text window -- the font isn't monospace, there's no syntax highlighting, no auto-indent based on parenthesis, and when you accidentally hit enter (instead of ctrl+enter) you leave the text editor (and then it'll pop up with complaints about your function not being parseable). Also, dragging the size of the edit box bigger means you won't get much of a view of your spreadsheet -- it would probably be nice to attach the edit window on the right (if it was turned into a proper formula editor).
Re:Excel never dies (2021) by collegeburner on Thursday August 04, 2022 @07:08PM (#32349451)
+1 for python support. getting vba versions right for stuff that expects to interface through it can be a bitch if some vendor doesn't update stuff. you pay some stupid amount for a financial data product then it's like "lol this doesn't work with your version of office install 2016". not really excel dev's but python would be nice.
Re:Excel never dies (2021) by elefanten on Thursday August 04, 2022 @08:43PM (#32350161)
+1 for color coding in top formula bar
Re:Excel never dies (2021) by inglor on Friday August 05, 2022 @06:03AM (#32353930)
> If nothing else, add color coded parenthesis to the bar at the top and not just in the cell.

This seems like a simple enough suggestion - I will pass on the rest but let me see if this is something we can fit to the next FHL.

Re:Excel never dies (2021) by Swenrekcah on Friday August 05, 2022 @05:35AM (#32353709)
Great suggestion, but don’t do it Microsoft. This is one of my signals for when to move on to another tool so if you implement this I’d stay in Excel longer!