If the screens are of the same size, then chances are it will work fine once you know how to go about changing screens.
But depending on the age of the laptop(s), the internal connectors could be different. Also, the inverter may be a different type for each screen. Just try and find out for yourself.