Oh the space in " D" was a miss. Anyway, glad it worked for you.

The INT is just meant to convert the text values to numeric values. So, for example, INT("100") will give numeric value 100.