# Calling Functions

#### young engineer

##### Board Regular
Function brixcor(Brix As Double)
A = 0.006222
B = 0.00023725
C = -0.0000018165
D = 0.000000018906
E = 0.00002328
brixcor = A * Brix + B * Brix ^ 2 + C * Brix ^ 3 + D * Brix ^ 4 + E * Brix ^ 2
End Function

Function brixFG(brixcorr, dil)
brixFG = brixcorr + angle
End Function
Function bxcorr2(brixFG, SG)
bxcorr2 = brixFG * SG
End Function

Function SG(dil)
SG = 1 + [(dil ^ 2 + 200 * dil) / 54000]
End Function

Function Gdil(bxcorr2, fruc)
Gdil = bxcorr2 - fruc
End Function

Function fruc(bxcorr2, angle1)
A = 52.5
B = 143.8
C = 50
fruc = ((A * bxcorr2) / B) - ((C * angle1) / B)
End Function

Function Gconc(Gdil)
Gconc = Gdil * 5 * 25 / 100
End Function

Function Fconc(fruc)
Fconc = fruc * 5 * 25 / 100
End Function

Function Frucpurity(fruc, bxcorr2)
Frucpurity = (fruc / bxcorr2) * 100
End Function

Hi All
I would like to know how to call functions. I would like the Frucpurity function to call all the other functions above before it runs.

Also when calling a function in a cell is, =Fruc(G2)(H2) the same as =Fruc(G2,H2)

Thanks

### Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

#### westconn1

##### Board Regular
Also when calling a function in a cell is, =Fruc(G2)(H2) the same as =Fruc(G2,H2)
NO, the first is not valid
to call a function from within someother sub or function
somevar = Fconc(valoffruc)

Replies
0
Views
348
Replies
3
Views
313
Replies
2
Views
272
Replies
1
Views
326
Replies
0
Views
386

1,191,346
Messages
5,986,129
Members
440,003
Latest member
patapsychonaute

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back