I apologize for inconsistent question. Exactly, combining two functions with toggle is solution for my problem in case of using functions. I did not think about that.
My code looks like this (and it will grow over time).
So far, to get for eg. the value kg_C instead of m_air, I copied the whole function and changed the return. Indeed, toggle will help me a lot.
After all, I'm afraid that in the case of functions , after some time I will not be able to control the input data (if I add another input data, I will have to add it to every field with this function in Excel). For this reason, I also considered using Sub. It seems to me that it would be easier to manage input data, but I do not know how automatically run Sub (I can run it through the button). Maybe there is an option of an automatic Sub without a button?
Thank you very much for the answers.
Bookmarks