Units sold = Opening units + purchased units – Closing units e.g. Sold 100 because opening was 10, purchases was 110 and 20 units are left in closing inventory
If by “difference” between sold and left units you mean Units sold – Closing units this isn’t meaningful.