once again, I think some of the golf-codes should be posted as it is.
in the remarks we could write see next post for further examination of the code.

I don't see by any means any udf as teaching lab as they are not starters guides! they are UDFs!
they have input and they output what they are supposed to output.
none of even the coders need to understand what it does once it does what it's supposed to do!

thus, I don't see any reason for this re-write.

I think this pat's re-write could make a good standing point for referencing topic about the udf or supplementery post after the actual udf.

once again, UDF <> starters code clinic

and they never should be made "="!
_________________________
!

download KiXnet