if yo don't know VBA skip this post.
RR is the relational roughness, in meters.(the k divided.dh in the euation)
Re is the Reynolds number
The most quick and accurate way to solve the Colebrook-White equation in Excel is to call this VBA with those two variables. This solution will soon be posted on the USDA's webpage for the public... after it goes thru all the red tape.
Ragknot@gmail.com
PS: You can copy and paste this into an Excel module. Fix the "debug" to read the steps in the immediate window.
'= Darcy-Weisbach Friction Coefficient solution ===============
Function DWFC(RR As Double, RE As Double) As Double
Dim f, stp, sm, dweq1, dweq2, NumDerv As Double
On Error GoTo stopnow
sm = 0.0000000000001: stp = 10: f = 0
While stp > 0.001
dweq1 = 1
While dweq1 > 0
f = f + stp
dweq1 = DwE(RR, RE, f)
If dweq1 > 0 Then savef = f
'Debug.Print stp, f, dweq1
Wend
f = savef: stp = stp / 10
Wend
dweq1 = 1
While Abs(dweq1) > sm
dweq1 = DwE(RR, RE, f)
dweq2 = DwE(RR, RE, f + sm)
NumDerv = (dweq2 - dweq1) / sm 'Numerical derivative
f = f - dweq1 / NumDerv 'Newton's method
'Debug.Print dweq1 / NumDerv, f, dweq1
Wend
DWFC = f
Exit Function
stopnow: DWFC = 9999: Exit Function
End Function