A variety of effects modify the charmonium production in PbPb collisions with respect to pp collisions, including melting in the quark gluon plasma and statistical recombination, which can have a different impact on the J/Psi and the Psi(2S) mesons. Additional effects, like modification of nPDFs, initial-state energy loss and nuclear break-up, all probed also in pPb collisions, can affect the measured PbPb yield. Using pp and PbPb data at sqrt(s_NN) = 2.76 TeV, the CMS Collaboration has previously reported that the Psi(2S) meson is more suppressed than the J/Psi at midrapidity and high p_T (>6.5 GeV/c), but a hint of less suppression at forward rapidity and intermediate pt (1.6<|y|<2.4, p_T>3 GeV/c). New results on the relative J/Psi and Psi(2S) modification, based on the pp and PbPb data collected at sqrt(s_NN) = 5.02 TeV by CMS in 2015, will be reported. In addition, prompt J/Psi results in pPb collisions at 5.02 TeV and in PbPb collisions at 2.76 TeV, including v_2 and R_AA, will be presented over a wide kinematic and centrality range (3 < p_T <30 GeV/c, |y|<2.4, and fine event-centrality intervals).