After you follow Ron's instructions, you should copy the column, and
paste special as Values. Then, if you sort the data, the rows will have
the correct label in that column.
There are instructions, and some sample code to automate the process,
shown here: