Sigmoid function: $\frac11+e^-z$
=1/(1+EXP(-B2)) (Targets H1 Z value)=1/(1+EXP(-C2))=1/(1+EXP(-D2))=1/(1+EXP(-E2))Because Excel doesn't have a native loop without VBA, you have two options:
Option A: Copy-Paste Iteration (Simple for learning)
Option B: Circular References (Advanced/Automatic) build neural network with ms excel full
=IF(ISBLANK(Control_Cell), RAND(), New_Weight_Cell).Control_Cell to trigger training. (Complex but powerful).Instead of repeating formulas, use offset ranges. However, Excel struggles with 10,000 manual loops. Instead, we use a Training Log:
Sub TrainNetwork()
Dim i As Integer
For i = 1 To 5000
'Refresh Formulas
Calculate
'Record Loss from Forward_Prop!$P$6 into Log sheet
Sheets("Log").Cells(i, 1) = i
Sheets("Log").Cells(i, 2) = Sheets("Forward_Prop").Range("P6").Value
'Copy Update values back to Parameters
Sheets("Parameters").Range("B2:C5").Value = Sheets("Update").Range("B2:C5").Value
Sheets("Parameters").Range("E2:E5").Value = Sheets("Update").Range("E2:E5").Value
Sheets("Parameters").Range("G2:J2").Value = Sheets("Update").Range("G2:J2").Value
Sheets("Parameters").Range("L2").Value = Sheets("Update").Range("L2").Value
Next i
End Sub
🧠 You don’t need Python to build a Neural Network.
You can build one in Microsoft Excel.
Forward prop ✅
Backprop ✅
Gradient descent ✅
Excel forces you to understand the math behind deep learning. No hidden layers (pun intended).
Want the full tutorial + free template?
Like & RT, and I’ll DM the link. 👇 Building a Neural Network with MS Excel: The
#Excel #NeuralNetwork #DataScience
1. Input to Hidden Weights (W1)
B4:E5x1, x2. Label columns as h1, h2, h3, h4.=RAND()-0.5)2. Hidden Bias (b1)
G4:G7 (4 rows, 1 column)bias_h1...bias_h4. Initial values: 0.13. Hidden to Output Weights (W2)
J4:J7h1...h4, column output. Random values between -0.5 and 0.5.4. Output Bias (b2)
J10: 0.1