In this paper we derive refined Petersson/Kuznetsov trace formulae with prescribed local ramifications. The spectral side of these formulae are much shorter than the standard versions. We use them to study the first moment and the subconvexity bound of certain Rankin-Selberg L-function in a hybrid setting.