r/adventofcode • u/Bachmanetti • Dec 07 '25
Visualization [2025 Day 7 Part 2] "Sounds like an Excel problem"
I actually completed both parts of the puzzle in Python first. but then had a thought of "I could do this in Excel".... Should have done that first, took less than 5 minutes. Input data is on the second tab, first tab has 3 types of formulas:
- First row: Find the "S" at the top and make it a 1
- Left Column: Sum along the Left
- Body: Check for neighboring splitters and any incoming beams, and sum them together.
So for example the cell in Output C2 is =IF(inputdata!C1="^",0,C1+IF(inputdata!B2="^",Output!B1,0)+IF(inputdata!D2="^",Output!D1,0))
255
Upvotes
4
u/RobotAnna1 Dec 08 '25
Every problem is an Excel problem.
21
u/Parzival_Perce Dec 07 '25
this makes me think of me using arch btw
15
u/Alan_Reddit_M Dec 07 '25
I hate the fact that excel is turing-complete
2
u/AlbondDev Dec 07 '25
Neat, I made a similar excel solution after solving in C#
1
u/Sprochfaehler Dec 08 '25
and if you say it looks a bit like a Christmas tree, they'll tell you it's just apophenia :/