JavaScrpit function rewrite excel

Job ID: 34160859

Budget: ₹750 – ₹1,250 INR

I need a function broken down and written correctly to work in excel, using cells as inputs.
Related categories: Data Processing Data Entry Excel Word Copy Typing