You are right in that you have all the data you need. But your data is scrambled based on how you have collected it, creating a situation where now it is difficult to know which data should be paired.
A few quick questions (and some explaination as to why I ask) could help sort this out:
Are the terminals hosted to the ceilings? (If so you can group the terminals by their host, get the elevation of each host, and set the elevation accordingly)
Do the space heights match the ceiling heights? (If so you can group the terminals by space, get the space’s height, and set the elevation accordingly)
If neither of those are true, you can set the terminals elevation to something very low across the board - say 6’, and then use a raybounce method to get the first ceiling above each light, and set the elevation by the distance from the low point to the ceiling point.