I have the below spreadsheet where column M can have different values. I need to insert a formula using VBA into column N based on the value in column M.
If M29 = "JTO/HEN002" then (K2+L2)/'Locations'!D2 but if M29 = "JTO/KIL003" then (K2+L2)/'Locations'!D3. I have the list of 'Locations' below. To complicate this, the number of rows in my spreadsheet can vary from week to week.
Any ideas?
If M29 = "JTO/HEN002" then (K2+L2)/'Locations'!D2 but if M29 = "JTO/KIL003" then (K2+L2)/'Locations'!D3. I have the list of 'Locations' below. To complicate this, the number of rows in my spreadsheet can vary from week to week.
Any ideas?