The vice president attended the ceremony on behalf of the president.

Literal

Vice-president [topic-は] president [substitute-に代わって] ceremony [target-に] attended.

~に代わって is a more formal variant of ~のかわりに — 'on behalf of/in place of.' 式典 means 'ceremony.'