IB 824 then VY 1009 at Madrid
Stockholm → Madrid → Barcelona
Timetable, Madrid time
18:45IB 824 from Stockholm at the gatealso LA 1528, VY 5129, AY 5637, AA 8504
18:35VY 1009 to Barcelona leaves the gatealso QR 5530, IB 5993, LL 5993
23 h 50 apart on the timetable, overnight
VY 1009 leaves 23 h 50 after IB 824 arrives on the timetable: more than half a day, so not a connection we count.