updated formula to take note of blank cells