sentence: track listing ; australian digital ep ; australian cd single ; us/aus digital ep the remixes personnel songwriting -- max martin , shellback , savan kotecha production -- max martin , shellback , kristian lundin keyboards -- max martin , shellback guitar and bass -- shellback recording -- max martin , shellback , brian warwick mixing -- serban ghenea mix engineer -- john hanes mixing assistant -- tim roberts source : chart performance as of august 5 , 2011 , '' if i had you '' has sold 835,000 downloads in the united states and charted at number 30 on the billboard hot 100 .