How to export parameter value (window height) of all to excel and in same order as mark value of each window

Cant seem to order a list of window heights to their respective mark value into excel
The window mark value is exported separately yo excel worksheet and separate operation for the window height which goes in same worksheet ,same row but with other cells inbetween

Can you share what you have so we can help you adjust accordingly? Sounds like a list management and sorting issue.