a quick look at the sheet:
The formula =($B7^$D$5)/(255^ $D$5-1 ) should be =($B7^$D$5)/(255^ ($D$5-1) )
=($B7^$D$5)/(255^ $D$5-1 )
=($B7^$D$5)/(255^ ($D$5-1) )