And then replace the A1 in post #5 with the formula in post #2, to get it all in one formula