Build Neural Network With Ms Excel New |link|
This guide is not a rehash of old methods. It integrates the newest developments—Excel’s native AI features, no‑VBA approaches, cutting‑edge add‑ins, and even implementations of GPT and Transformer models entirely inside spreadsheet formulas.
When that Loss cell finally drops below 0.01, you will have a feeling that no model.fit() can replicate.
Now, we take the outputs of the hidden layer (columns D and E ), multiply them by the second set of weights, add the second bias, and apply the Sigmoid function again. The Formula: In cell J2 (Predicted Output, Ypredcap Y sub p r e d end-sub ), enter: =1 / (1 + EXP(-(MMULT(D2:E2, $I$2:$I$3) + $I$4))) Drag this formula down for all training rows. Step 4: Calculate the Total Error (Loss Function)
In cell (Hidden Node 1 Sum), enter: =(A2*$E$2)+(B2*$E$3)+$G$2 In cell M2 (Hidden Node 1 Output), enter: =1/(1+EXP(-L2)) build neural network with ms excel new
Backpropagation calculates how much each weight and bias contributed to the error. We use the chain rule from calculus to compute gradients. Create columns for the gradients next to your forward propagation rows. 1. Output Layer Gradients =Y_pred - Y_actual Activation Gradient ( ): =Y_pred * (1 - Y_pred) (The derivative of Sigmoid) Output Delta ( δ[2]delta raised to the open bracket 2 close bracket power
Sigmoid(x)=11+e−xSigmoid open paren x close paren equals the fraction with numerator 1 and denominator 1 plus e raised to the negative x power end-fraction In Excel: =1 / (1 + EXP(-Final_Sum)) . 5. Training the Network (The "New" Excel Part)
Artificial intelligence and machine learning are no longer restricted to Python developers. With the modern capabilities of Microsoft Excel—specifically enhancements to , dynamic arrays , and improved Office Scripts —you can now build, train, and run simple artificial neural networks (ANNs) entirely within a spreadsheet. This guide is not a rehash of old methods
Where the matrix mathematics happens. 3. Initialize Weights and Biases
Since MMULT() is volatile, we use =SUMPRODUCT(weights_range, input_range) .
To introduce non-linearity, apply the ReLU function, which keeps positive values and sets negative values to zero. Use this formula: =MAX(0, Weighted_Sum) . Step 2: Calculate Output Layer Now, we take the outputs of the hidden
: This allows you to run high-performance models (e.g., satellite imagery classification) on spreadsheet data without local processing power. Microsoft Azure 3. "Shortcut" AI Integration (New for 2025/2026) Newer workflow tools like Shortcut.ai
We will use the iterative method as it is the most "new Excel" way to simulate a loop.