Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Function RsGlaso(gama, API, T, Pb)
' Application.Volatile False Dim Rs As Double, KorekcioniPb As Double 'gama = gas gravity - input testData=0.732 'API = ro [API] - input testData=38 'T - [F] - input testData=180 'Pb - [psi] - input testData=3811 KorekcioniPb = 10 ^ (2.8869 - (14.1811 - 3.3093 * Log(Pb)) ^ 0.5) 'Rs = gama * (((API ^ 0.989) / (T ^ 0.172)) * KorekcioniPb) ^ 1.2255 Rs = gama * (((API ^ 0.989) / (T ^ 0.172)) * KorekcioniPb) ^ 1.2255 RsGlaso = 5 End Function It works if I type formulas into spreadsheet, but if I defined it as custom function it returns #VALUE |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
tab names are wrong when printing custom footers (using [&tab] ) | Excel Worksheet Functions | |||
what's wrong with this function? | Excel Discussion (Misc queries) | |||
What's wrong with this IF function. | Excel Discussion (Misc queries) | |||
What is Wrong with this function?????????? | Excel Worksheet Functions | |||
What am I doing wrong with PMT function? | Excel Discussion (Misc queries) |