Hi,
I am new to VBA and wondering what the best way to do this would be :
if unit by column contains SP then grab price and divide it by 10 in the updated price field. If it is something else, do nothing.
Is it best to do this as an array function or go through the cells until you reach the end and just offset to get the desired value in the updated price column?
I am new to VBA and wondering what the best way to do this would be :
if unit by column contains SP then grab price and divide it by 10 in the updated price field. If it is something else, do nothing.
Is it best to do this as an array function or go through the cells until you reach the end and just offset to get the desired value in the updated price column?
ID | Unit By | Price | Cost | updated price |
1 | SP | 10 | 5 | |
2 | UN | 6 | 1 |