There are currency exchange offices at Barcelona’s airport. The airport also has ATMs where you can withdraw cash directly with your debit card. Alternatively, Las Ramblas has loads of banks and hotels that will change your currency for you, and they may have better exchange rates.