Everything looks right. Where do you get an error?

BTW avoid AT ALL COSTS using merged cells, they will cause trouble if you need them to analyze data