So width and height are named ranges defined as C3:K3 and B4:B24 (or wherever the width and height are stored on the axis of the price table)?

If so, this should be working for you. Can you post your work book?