Two weeks can get you to Burgos, or at least in between Burgos & Logrono. You can get buses & trains from both cities to Barcelona. If you are in between Burgos & Logrono, you can take a bus to either city. I suggest stopping at the Tourism office in Logrono for information on bus schedules.
Kelly