Dear Sir,
i read and understood what you need to do with the excel file, to input variables of the distances and parameter and get the output calculated
so please let's talk , and i already did similar work of this, " Formulas work " but different area in engineering, so i will be capable of doing and finishing this work for you
hope to hear from you,
regards