>Any additional suggestion?
I think Excel may have some functions to generate these values.
Now, I am not suggesting you use Excel Automation - although this might be an option, too - but rather, that you check the documentation of the function. It may be documented there.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)