frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Do you allow vibecoded submissions in your open-source projects?

3•sneas•1h ago•4 comments

Ask HN: What are your predictions for 2026?

84•mfrw•2d ago•151 comments

Ask HN: Those making $500/month on side projects in 2025 – Show and tell

424•cvbox•1d ago•495 comments

Tell HN: HN was down

595•uyzstvqs•1d ago•326 comments

Ask HN: What Are You Working On? (December 2025)

437•david927•4d ago•1443 comments

Ask HN: Does anyone understand how Hacker News works?

156•jannesblobel•1d ago•212 comments

Tell HN: Cloudflare Down Again?

8•valtlfelipe•3h ago•6 comments

Ask HN: How do you deal with large, hard-to-read Excel formulas?

5•jack_ruru•11h ago•8 comments

Tell HN: AI coding is sexy, but accounting is the real low-hanging target

64•bmadduma•1w ago•55 comments

Ask HN: If one day AI brain chips become a thing, would you get it?

5•keepamovin•8h ago•20 comments

Ask HN: How do teams remember why infrastructure decisions were made?

5•curious_sre•13h ago•8 comments

Ask HN: Who here is not working on web apps/server code?

12•ex-aws-dude•20h ago•10 comments

Ask HN: Is starting a personal blog still worth it in the age of AI?

63•nazarh•4d ago•75 comments

Ask HN: Is anyone using LLM based document processing in production?

7•asdev•17h ago•6 comments

Computer animator and Amiga fanatic Dick van Dyke turns 100

281•ggm•6d ago•93 comments

Ask HN: Is building a calm, non-gamified learning app a mistake?

86•hussein-khalil•3d ago•122 comments

Ask HN: Should I start a software foundation (goal: help emergency services)?

11•strgcmc•1d ago•0 comments

Is analytics a necessary evil rather than a real value driver?

6•tiazm•21h ago•7 comments

Ask HN: How to fight back against Lovable, Replit, etc. in enterprise products

3•bears123•21h ago•3 comments

GitHub Actions Degraded

3•1qaboutecs•21h ago•0 comments

Ask HN: Is RSS Still Alive?

10•militanz•1d ago•12 comments

Ask HN: Should I Open Source Every Product I Build as an Indie Developer?

6•tomfox2•23h ago•11 comments

Ask HN: If you had to get a non-tech masters degree, what would you go for?

2•highwayman47•23h ago•6 comments

Tell HN: iOS 18.7.3 Update Hidden

5•alemanek•11h ago•2 comments

Ask HN: Etiquette giving feedback on mostly AI-generated PRs from co-workers

4•chfritz•1d ago•4 comments

Ask HN: Why do official-looking emails cause anxiety before I read them?

4•BianDan•1d ago•4 comments

Ask HN: Decentralized Auth for Information Exchange?

2•vxsz•1d ago•3 comments

Ask HN: How can I get better at using AI for programming?

467•lemonlime227•5d ago•466 comments

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

2•mrsurge•1d ago•0 comments

Breaking Changes in Python-3.14

6•wef•16h ago•6 comments
Open in hackernews

Ask HN: How do you deal with large, hard-to-read Excel formulas?

5•jack_ruru•11h ago
When Excel formulas get large, I often lose track of what’s actually happening.

I’m wondering whether representing formulas structurally (instead of plain text) could make them easier to read and modify, but I’m not sure if this really helps in practice.

How do you usually handle large formulas?

Comments

Someone1234•10h ago
Break them down into multiple smaller formulas, with a column above explaining what they each do. Then consume the previous result in the next formula. This doesn't even need to be on the same sheet as the actual primary consumer sheet.
jack_ruru•10h ago
Yeah, that’s usually what I do as well. Breaking formulas into helper columns definitely makes things clearer.

What I’ve been running into is cases where large formulas already exist (and refactoring them into multiple columns isn’t always an option), so I started wondering whether a structural representation could help with understanding and small edits, rather than replacing that approach.

I’m not convinced it’s better yet — just exploring the space.

anigbrowl•10h ago
Break them into components and calculate the result iteratively if you can; I prioritize clarity and provability over raw performance. If it's a set of standard formula specific to an industry, consider lambda functions.
clwncr•8h ago
I use named ranges to semantically label relevant cells or ranges, and then use those labels in the formula. It's much easier to read and construct formulas when you don't have to think about where a value exists in the worksheet.
harperlee•4h ago
Named ranges! Also newer Excel versions provide you the LET function, which is neat for documentation (naming) of intermediate steps:

  =LET(data; F4:F34;
       dummy1; "This is a made up average function; this string is ignored";
       dummy2; "one limitation is that you cant really overwrite variable names";
       tally; COUNTA(data);
       total; SUM(data);
       total/tally)
It also avoids recomputing intermediate stuff. You can also encapsulate things in a LAMBDA anonymous function:

  =LET(data; F4:F34;
       mymeanfunction; LAMBDA(data;
                              LET(tally; COUNTA(data);
                                  total; SUM(data);
                                  total/tally));
       mean1; mymeanfunction(data);
       mean2; mymeanfunction(OFFSET(data;0;1));doc;"FIXME, this should have its own variable name to refer explicitly to G4:G34";
       AVERAGE(mean1;mean2))
You could also move the LAMBDA to the name registry and use that function similarly to how you would use a named range or a built-in formula!

Coming from a lisp background, I was ecstatic to see this, but they have heavy technical limitations. I did play a little bit though with these concepts and the dynamic array functions. Fun functions to explore:

  - DROP, TAKE, CHOOSECOLS, CHOOSEROWS to cut arrays
  - INDEX, OFFSET, COLUMN, ROW to navigate
  - WRAPCOLS, WRAPROWS, TOROW, TOCOL, VSTACK, HSTACK, TRANSPOSE to shape arrays
  - MAP, SCAN, REDUCE to compute on top of arrays
There's more!
sevensor•3h ago
I discovered named ranges only a couple of months ago, and they’re pretty amazing, as is the spilling behavior that fills an entire column from one cell. When it comes to the specifics of dealing with complex formulas, I usually copy paste them to a text editor because the formula bar doesn’t have a great editing ui.

How far did you get with let and lambda? It seems like you could build whole programs on them, but I haven’t pushed very hard on them yet. Do you want to say more about the “heavy technical limitations”?

harperlee•3h ago
Yes, I don't think Excel product owners are focusing on professional development, just power users. So things like the formula bar are lackluster. There is also a formula stepper that's mostly useless for debugging.

I played with them and even tried to build a minikanren, but on my day to day job I just use them tactically, so I avoid their limitations and I'm quite happy with them for that.

From memory:

  - Recursion is severely limited in lambda.
  - There are extra pains when putting formulas on the name manager or on conditional formatting (although more focused on references than on lambdas in particular, usage of lambda would be more powerful if they didn't exist)
  - You can't do arrays of arrays, so your data structures need to be flat
jack_ruru•2h ago
Yeah, I agree — LET and LAMBDA are surprisingly powerful. They definitely help with naming intermediate values and avoiding recomputation.

The limitation I keep feeling is less about expressiveness and more about working with existing formulas: debugging, making small changes, or explaining intent to someone else.

Even with LET/LAMBDA, the structure still lives mostly in a single line of text, and the formula bar UI doesn’t really help you reason about that structure. That’s the gap I’ve been curious about exploring.