How to generate a formula in Excel so the number generated is only generated once and doesn't repeat itself again?