Can I attend Mass for someone else?

Sorry for my bad English.
I have a doubt that do people are being responsible for the sin of ancestors like avoiding sunday mass? If it is so, can we attend mass for them? My grandfather didn’t go to church for 41 years, recently a counselor who is a nun told me that he is in purgatory for this sin.
Please respond

No, we cannot attend Mass on behalf of another person. There is no Mass attendance by proxy.

However, we *can *pray for them and offer up penance on their behalf…

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit