Hi there,
I have an Excel formula which I wish to use in VBA.
I have learned that MOD(x,y) becomes x MOD y but I am having problem with the following:
=MEDIAN(value1, value2, startplace:endplace)
The problem is the startday:endday. Even though I have set up the variabled in VBA to replaced the named cells from Excel worksheet, VBA doesn't like the syntax.
Eg, in Excel, startplace =3 and endplace=5 the result is 3 (median of 1, 2, 3, 4, 5)
In VBA:
The line in in red as an error.
Any ideas how to incorporate the startplace:endplace ?
Thanks
Bookmarks