Set the reference plane
Mark the proposed front of the uprights on both side walls with removable tape. Make every width reading between walls at that plane. Take a second series near the rear edge of the panels and check for bows between stations. If that series is tighter, use its readings or reduce the front readings to reflect the verified opening and keep the original numbers in your notes.
Check ceiling and floor independently
Use a level line to compare floor heights under all uprights. Measure toward the lowest overhead point from the proposed level base, reserving space for shims, a platform or ceiling trim as needed. A nominal ceiling height measured beside the doorway tells you little about an upright below a soffit at the back.
Close the width chain
If the three readings are 1824, 1810 and 1816 mm, start the run from 1810 mm. Label each measured position. A filler sized from the wider reading can consume the allowance needed to slip the run through the narrow band.