Thanks for the reply Lalit Pandey.

However, I am not able to get the results. Instead, I am receiving the #VALUE error.

Also, "put this formuls with CSE in cell B2" - Could you explain what is CSE?

Or, could you please add the formula yourself and attach it here. That would be really nice.