Changing Revit parameters through Excel sheets


Hi all

I have been working on two scripts, one where it should be possible to export Structural Framings from Revit to Excel and one with import of Structural Framing from Excel to Revit.
The export should gather all the same framings (objects) and parameters in the same row, so I don’t end up with a long list.
My problem is that when the changed parameters(in the excel sheet) are imported back to the Revit model, there is a misfit between exported rows and the imported rows, maybe because of the List.UniqueItems?

Does anyone know how this could be solved or an idea to a new script?

Thanks in advance