Hi all. I know this is a total noob question, but can anyone tell me why this function always returns 0:
Function Cd(Re As Double)
Select Case Re
Case Re < 1
Cd = 24 / Re
Case 1 < Re < 1000
Cd = 18 * Re ^ (-0.6)
Case 1000 < Re
Cd = 0.44
End Select
End Function
Whenever I call it in the spreadsheet, it always returns 0. For example Cd(5000) = 0, when it should be 0.44. Thanks in advance for the help.