Did you try my code in your really real sample ?
It creates all different price classes automatically (provided they reside in column 32).

Take your time to study the code.
The more you understand the better you can use it.