By: Hadi Ul Bashar

In reply to Deep.

Hello DEEP!

From your comment, I think the most possible reason of the error could be inappropriate cell referencing. Please note that these formulas include both absolute and relative cell reference. You may copy paste the formulas, and then adjust the cell references according to your dataset. Hopefully that will solve your issue.

Output:

If you need further assistance regarding this, please feel free to send the Excel file in this email problem@exceldemy.com.

Regards
Hadi Ul Bashar