Hi 0Abhi0,
Welcome to Microsoft Community and appreciate your time taken for sharing detailed information. I understand that you want to save your customized function formula in Excel for future use. Please correct me if I am wrong. I am glad to offer you help on this issue.
This idea can be realized in Excel, but it needs a certain degree of learning or programming ability.
You can press ALT + F11 in excel at the same time to enter the VBE compilation environment, and then compile the code according to your needs
I'm sorry that I can't give the specific code implementation here, but, if necessary, you can go to the technical document link given below to learn by yourself, or ask the IT practitioners around you for help,
Developer tools, technical documentation and coding examples | Microsoft Docs
The reason why we can't provide specific code implementation is that this is a relatively personalized operation, and we can only provide conventional solutions.
I hope the information provided is useful to you. If you have any further questions, please feel free to contact our support.
Kind regards
| Jackn Microsoft Community Support Specialist
* Beware of scammers posting fake support numbers here. "
* Kindly mark and rate this response if it helps, as it will be helpful for more community members reading here.