top of page

Excel Arena

This is the place, where we can test the boundaries of Excel functions.

Math Magics in Excel:

10 minutes ago
1 min read

A number isn’t just a value — it’s a structure waiting to be revealed.


One elegant fact I explored recently: every integer can be written as the sum of three palindromes.



To test this constructively, I built an Excel formula that:

• Generates all palindromes up to a target number

• Forms every valid triple

• Filters those that sum to the target


=LET(n,701,s,SEQUENCE(,10,0),a,SEQUENCE(999),b,HSTACK("",s),d,VSTACK(DROP(s,,1),--(a&b&BYROW(MID(a,{3,2,1},1),CONCAT))),e,SORT(TOCOL(IFS(d<=n,d),3)),f,REDUCE(e,{1,2},LAMBDA(x,_,LET(h,TAKE(x,,1),j,TOROW(e),y,(--TEXTAFTER(h,"+",,,,h))<j,HSTACK(TOCOL(IFS(y,h&"+"&j),3),TOCOL(IFS(y,TAKE(x,,-1)+j),3))))),FILTER(TAKE(f,,1),TAKE(f,,-1)=n))


For 701, the formula returns all combinations of three palindromes whose sum is exactly 701 — a clean, data‑driven confirmation of the theorem inside Excel itself.


A nice reminder that even familiar numbers hide patterns, and the right tools can uncover them.



Detecting Consecutive‑Sum Patterns in Excel:


2025 can be written as a sum of consecutive whole numbers in 14 different ways — and Excel can detect all of them automatically.



Consecutive‑sum patterns follow a clean mathematical rule:

a number n can be expressed as k consecutive whole numbers only when:


k(k+1)/2 ≤ n


Using this, Excel can dynamically determine every valid sequence length and generate all representations of 2025 with a single formula:

=LET(n,2025,s,SEQUENCE(INT((SQRT(1+8*n)-1)/2),,2),TOCOL(MAP(s,LAMBDA(x,LET(y,SEQUENCE(,x,1-CEILING(x/2,1))+INT(n/x),IFS(AND(SUM(y)=n,y>0),TEXTJOIN("+",,y))))),3))



Recent Posts

See All

Comments


  • LinkedIn
  • Facebook
  • Twitter
  • Instagram
bottom of page