Live data from Hacker News

Microsoft is making Excel’s formulas easier

theverge.com

31–40 of 141 posts

Re: Microsoft is making Excel’s formulas easier

#31
post #27

My current #1 wish for Excel formula entry: Please let me use [Tab] and [Enter] in the formula bar without trying to commit the change! I like to format my formulas with multiple lines and indentation, but to do that I have to hold down [Alt] and mash the spacebar like a caveman. I am happy with the new features I've been seeing. LAMBDA() and the new TEXT functions are nifty.

Then how do you suggest you commit the change then (which is much more commn than adding tabs to a formula)? Hopefully not some combination of keys.

[Ctrl]+[Enter] would be awesome. Or just a double enter would work. Or clicking on the sheet somewhere.

I don't want Excel to change the default behavior. The way it works now is the right way for most people. I just want to be able to enter a mode where I get to freely edit the formula as if it were in a text editor, then exit that mode when I'm satisfied. Whether that is some checkbox option buried in the settings ("Options > Formulas > Working with formulas"), or an F-key, I don't care.

Re: Microsoft is making Excel’s formulas easier

#32
post #20

Earlier quoted context omitted.

Any new or good ways to do this? I used Excel-Dna 10 years ago.

Yup, javascript: https://learn.microsoft.com/en-us/office/dev/add-ins/excel/c...

Ah interesting thanks, I'll have to try it out.

Re: Microsoft is making Excel’s formulas easier

#33
post #27

Earlier quoted context omitted.

Then how do you suggest you commit the change then (which is much more commn than adding tabs to a formula)? Hopefully not some combination of keys.

[Ctrl]+[Enter] would be awesome. Or just a double enter would work. Or clicking on the sheet somewhere. I don't want Excel to change the default behavior. The way it works now is the right way for most people. I just want to be able to enter a mode where I get to freely edit the formula as if it were in a text editor, then exit that mode when I'm satisfied. Whether that is some checkbox option buried in the settings…

CTR+ENTER is already taken. Select a range of cells, press F2, enter your formula, CTR+ENTER applies and fills that formula to the whole range (very useful).

Re: Microsoft is making Excel’s formulas easier

#35
post #33

Earlier quoted context omitted.

[Ctrl]+[Enter] would be awesome. Or just a double enter would work. Or clicking on the sheet somewhere. I don't want Excel to change the default behavior. The way it works now is the right way for most people. I just want to be able to enter a mode where I get to freely edit the formula as if it were in a text editor, then exit that mode when I'm satisfied. Whether that is some checkbox option buried in the settings…

CTR+ENTER is already taken. Select a range of cells, press F2, enter your formula, CTR+ENTER applies and fills that formula to the whole range (very useful).

Oof. I actually use that frequently as well. Okay, okay, How about this? My wished-for option would just be to swap the behavior of [Enter] and [Alt]+[Enter].

Normally the first one commits the formula, the second one inserts a newline. I want to reverse that and make a naked [Enter] insert the newline, and the [Alt]+[Enter] commit the formula.

Re: Microsoft is making Excel’s formulas easier

#36
post #20

Earlier quoted context omitted.

Any new or good ways to do this? I used Excel-Dna 10 years ago.

Yup, javascript: https://learn.microsoft.com/en-us/office/dev/add-ins/excel/c...

Is it fast? For instance there is a large overhead to using VBA UDF, whereas XLL (and ExcelDNA) is pretty fast (matters if the formula is repeated over and over on a spreadsheet).

Re: Microsoft is making Excel’s formulas easier

#37

Recently I started building Excel addons with custom formulas (e.g. =company.inventory(upc, WAREHOUSE), which call an api. This has blown the minds of non-tech folks among my clients. They equate this to magic. I was forced into doing this because after a year of digging to find out what reporting they wanted in the dashboard (“oh a thousand things… where’s the Excel spreadsheet export button?”), I gave up and now de…

What is your language of choice for building custom formula? Python + xlwings: most successful (relatively speaking) to build custom finance functions in my line of work. Downside is the slowness and deploying on other computers. Rust + xladd: really enjoyed this but feels immature still. Better performance than python and easier to distribute as single dll. VBA: options above make this almost obsolete, however can’t…

Excel-Dna works great. C#, Doesn't need access to registry so easy install.

Re: Microsoft is making Excel’s formulas easier

#38
post #36

Earlier quoted context omitted.

Yup, javascript: https://learn.microsoft.com/en-us/office/dev/add-ins/excel/c...

Is it fast? For instance there is a large overhead to using VBA UDF, whereas XLL (and ExcelDNA) is pretty fast (matters if the formula is repeated over and over on a spreadsheet).

Not sure how it compares to XLL but I'd wager the bottleneck, in my case, is the API calls.

Re: Microsoft is making Excel’s formulas easier

#39
post #33

Earlier quoted context omitted.

CTR+ENTER is already taken. Select a range of cells, press F2, enter your formula, CTR+ENTER applies and fills that formula to the whole range (very useful).

Oof. I actually use that frequently as well. Okay, okay, How about this? My wished-for option would just be to swap the behavior of [Enter] and [Alt]+[Enter]. Normally the first one commits the formula, the second one inserts a newline. I want to reverse that and make a naked [Enter] insert the newline, and the [Alt]+[Enter] commit the formula.

I think shift+enter for new line would be a better choice if you were to highjack an existing shortcut. Probably barely used by anyone and it would be consistent with a line break shortcut in word/powerpoint and elsewhere.

Committing a formula needs to be a simple shortcut because it has to be used by the least technical users. You don't want to create a "how to exit VIM" mess in a retail product.

Re: Microsoft is making Excel’s formulas easier

#40
post #37

Earlier quoted context omitted.

What is your language of choice for building custom formula? Python + xlwings: most successful (relatively speaking) to build custom finance functions in my line of work. Downside is the slowness and deploying on other computers. Rust + xladd: really enjoyed this but feels immature still. Better performance than python and easier to distribute as single dll. VBA: options above make this almost obsolete, however can’t…

Excel-Dna works great. C#, Doesn't need access to registry so easy install.

And combined with NetOffice for Excel COM interoperability without the headaches.
Post reply on HN