Origin to centre

Hi I'm trying to set the origin to the centre of my object so that I can share object data. However when I try, it clearly doesn't go to the centre of the object. Even if I try to set cursor to selected first, then set the origin. What am I doing wrong?