Someone does something in another person's place: 替我去 "go for me". 替 can also express feelings on someone's behalf: 我替你高兴 "I'm happy for you". 代替 is also a verb, "to replace".
Usage notes
替…着想 means "think of someone else's interests": 你也要替父母着想.
Examples
你能替我去超市吗?nǐ néng tì wǒ qù chāoshì ma?Could you go to the supermarket for me?
我真替你高兴!wǒ zhēn tì nǐ gāoxìng!I'm really happy for you!