siddharthsopori
New Member
Hello Gurus ,
PFA the sample file.
We need to convert the values highlighted in YELLOW to the Sales Unit of measurement from Base unit of measurement using VBA
IF sales UoM = Base UoM , do nothing to the values of the corresponding row
IF Sales UoM = GAL and Base UoM = L , values = values*0.264172 (all the values of the corresponding row)
IF Sales UoM = LBS and Base UoM = KG , values=value*2.20462(all the values of the corresponding row)
*The number of rows and columns are not fixed so definite values of rows and columns cannot be used Eg. From F2:S2 cannot be used.
Regards
Sid
PFA the sample file.
We need to convert the values highlighted in YELLOW to the Sales Unit of measurement from Base unit of measurement using VBA
IF sales UoM = Base UoM , do nothing to the values of the corresponding row
IF Sales UoM = GAL and Base UoM = L , values = values*0.264172 (all the values of the corresponding row)
IF Sales UoM = LBS and Base UoM = KG , values=value*2.20462(all the values of the corresponding row)
*The number of rows and columns are not fixed so definite values of rows and columns cannot be used Eg. From F2:S2 cannot be used.
Regards
Sid