Do you realize you will spend hrs on the from/to airports
transportation in both Madrid and Barcelona?
Plus the time spent flying from US to Spain and back. Honestly if you have only one week, you should just pick one city at most two, for the vacation.