What did you modify and why? Is your rounding regime something other than posted because it worked in all instances to round up to the next whole number if .75 or greater and up to the .5 if .25 or greater. All others dropped back to the .5 and the next lowest whole number.
Just curious. Repost actually what you used and your required rules if you have a moment. Thanks
Bob Scriver
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
They should both be in the Help files. They are both functions. I have copied a portion for you here: SWITCH FUNCTION
Evaluates a list of expressions and returns a Variant value or an expression associated with the first expression in the list that is True.
Syntax
The Switch function syntax has these parts:
Part Description
expr Required. Variant expression you want to evaluate.
value Required. Value or expression to be returned if the corresponding expression is True.
CInt and CLng Functions
CInt Integer -32,768 to 32,767; fractions are rounded.
CLng Long -2,147,483,648 to 2,147,483,647; fractions are rounded.
Bob Scriver
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.