I actually used to have 50 laptop lcd:s just stacked up and i took the one which fit in and had same connector. There are some things to consider like i said connector needs to be the same, also if you try to use LCD screen which is FHD (1920x1080) resolution and your laptops eDP cable is only 1 lane you will not get it to work.
both laptops are sold with different resolution screens with different connectors, theres noway to know before you open the screen bezel and check either the model number or what connector it has.
Are both laptop screens 1080p?